Click here to Skip to main content
15,667,014 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
hi guys,

I am again in trouble. I have an arraylist in aspx.cs page I want to print it in aspx page between div2.
Updated 26-Sep-12 3:33am

1 solution

1) Give your div2 ID="div2" runat="server" attributes.
2) In your code behind, iterate through the arraylist using a foreach.
a) for each item in the arraylist, append the value to a StringBuilder.
3) Apply the StringBuilder result to div2 content.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900