How to display result in table format RRS feed

  • Question

  • I have a web form to ask the email address and then display the delegates in Textbox on the web form. 
    My Cs code works fine and display the result as below,

    Display Name : ABC None True DelegatesOnly
    Display Name: XYZ Editor False Delegates Only

    Is it possible to show the data in table like below,

    Display Name: ABC



    Delegates Only

    Display Name: XYZ



    Delegates Only


     string ServiceAcc = "";
                string ServiceAccPWD = "";
                string UAcc = Boss.Text.ToString();
                Mailbox mailbox = new Mailbox(UAcc);
                WebService ws = new WebService();
                ExchangeService service = (ws.webservice_conn(ServiceAcc, ServiceAccPWD, UAcc));

                string msg1 = "";
                DelegateInformation result = service.GetDelegates(mailbox, true);
                Collection<DelegateUserResponse> delegateuserreponse = result.DelegateUserResponses;

                for (int i = 0; i < delegateuserreponse.Count; i++)

                    DelegateUser user = delegateuserreponse[i].DelegateUser;

                    string msg = ("DisplayName: " + user.UserId.DisplayName + '\t' +
                                  user.Permissions.CalendarFolderPermissionLevel + '\t' +
                                  user.ReceiveCopiesOfMeetingMessages + '\t' +
                                  result.MeetingRequestsDeliveryScope + '\t' );
                    msg1 = msg1 + System.Environment.NewLine + msg;

                Delegates.Text = msg1.ToString();

    Wednesday, June 27, 2018 2:00 AM


  • Hi,

    According to your description, your issue is more related about ASP.NET Web Form app. And this forum discuss and ask questions about the C# programming language, IDE, libraries, samples, and tools. It will be more appropriate to ask your question at ASP.NET Forums.

    Thank you for your understanding.



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by Sumitz89 Thursday, June 28, 2018 5:34 AM
    Wednesday, June 27, 2018 7:41 AM