Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7765281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:07:42+00:00 2026-06-01T15:07:42+00:00

i have atext from jquery method : <fieldset> <ul id=ContentPlaceHolder2_1g class=profList column ui-sortable> <legend

  • 0

i have atext from jquery method :

   <fieldset>
  <ul id="ContentPlaceHolder2_1g" class="profList column ui-sortable">
 <legend class="group">المجموعه 1</legend>
 <li id="ContentPlaceHolder2_8">محمود حسن ابراهيم عبد الصمد</li>
 /ul></fieldset>



<fieldset>
<ul id="ContentPlaceHolder2_2g" class="profList column ui-sortable">
<legend class="group">المجموعه 2</legend>
<li id="ContentPlaceHolder2_9">محمود فتحى ابراهيم عبد الصمد</li>
<li id="ContentPlaceHolder2_10">احمد محسن احمد على</li>
<li class="" style="" id="ContentPlaceHolder2_3">احمد درويش محمود عباس</li>
</ul>
</fieldset>

<fieldset>
<ul id="ContentPlaceHolder2_3g" class="profList column ui-sortable">
 <legend class="group">المجموعه 3</legend>
 <li id="ContentPlaceHolder2_11">محمد سيد محمد سيد</li>
 </ul>

</fieldset>

i retrieve this htmltext in variable in c#
ok then i have div in my aspx

 <div id="ulAndil" runat="server" ></div>

i want to render these html in div and loop through these controls like ul an il
all this in one method at run time

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:07:43+00:00Added an answer on June 1, 2026 at 3:07 pm

    Just do it fastly through this way.

    StringBuilder str = new StringBuilder();
    str.Append("<fieldset>\n");
    str.Append("<ul id=\"ContentPlaceHolder2_1g\" class=\"profList column ui-sortable\">\n");
    str.Append("<legend class=\"group\">المجموعه 1</legend>\n");
    str.Append("<li id=\"ContentPlaceHolder2_8\">محمود حسن ابراهيم عبد الصمد</li>\n");
    str.Append("</ul></fieldset>\n");
    str.Append("<fieldset>\n");
    str.Append("<ul id=\"ContentPlaceHolder2_2g\" class=\"profList column ui-sortable\">\n");
    str.Append("<legend class=\"group\">المجموعه 2</legend>\n");
    str.Append("<li id=\"ContentPlaceHolder2_9\">محمود فتحى ابراهيم عبد الصمد</li>\n");
    str.Append("<li id=\"ContentPlaceHolder2_10\">احمد محسن احمد على</li>");
    str.Append("<li class=\"\" style=\"\" id=\"ContentPlaceHolder2_3\">احمد درويش محمود عباس</li>\n");
    str.Append("</ul>\n");
    str.Append("</fieldset>\n");
    str.Append("<fieldset>\n");
    str.Append("<ul id=\"ContentPlaceHolder2_3g\" class=\"profList column ui-sortable\">\n");
    str.Append("<legend class=\"group\">المجموعه 3</legend>\n");
    str.Append("<li id=\"ContentPlaceHolder2_11\">محمد سيد محمد سيد</li>\n");
    str.Append("</ul>\n");
    str.Append("</fieldset>\n");
    
    ulAndil.InnerHtml = str.ToString();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have saved input from a textarea element to a TEXT column in MySQL.
I have a text string i'm trying to select the spans from using jQuery.
I have a simple jquery script that copies a text from a html element
I have a PHP and jQuery script that creates search result suggestions from a
I have a text field which is filled with a date from the jQuery
Does JavaFX 2.0 supports printing? I have a text area from which I take
I have a text area page which is launched from the previous page: $message
I have a gridview that contains value of every rows read from a text
I have a text file to parse in Perl. I parse it from the
I have to extract columns from a text file explained in this post: Extracting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.