displaying dataset data into HTML table in asp.net web appliction

Posted by Udaysimha under ASP.NET on 2/28/2012 | Points: 10 | Views : 2213 | Status : [Member] | Replies : 2
Hi All,

My Requirement is i would like to display dataset data in HTML Table control at runtime. Please any body give me idea to achieve my requirement with some sample coding. It is very urgent please help.

Thanks

uday


Responses

Posted by: Sheonarayan on: 2/28/2012 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
You can do following.

1. Loop through DataTable rows under DataSet
2. Prepare HTML code for the table by concatenating the strings like <table><tr><td> .... so on with the help of DataTable data
3. Put a asp:Literal control on the .aspx page where you want this table to appear
4. Set the Text property of the asp:Literal control to the prepared string in the loop

Hope this works.

Thanksq

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Udaysimha, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 2/29/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi you can use asp:repeater control also

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Udaysimha, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response