Click here to Skip to main content
14,978,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can I retreive sql database fields in an HTML Table in vb.net.
I have a html table with collapsing and expanding functionalities on click of row.Now I need the table to retrieve data from database.

Thanks
Posted
Updated 19-Sep-13 19:40pm
v2
Comments
CodeBlack 20-Sep-13 1:54am
   
Of course you can do it. this is what we software engineers do. On click event of row call javascript method and from that javascript method call webservice and retrieve data in that webservice return retrieved data in JSon format. now you can easily display data in your HTML table.

1 solution

Firstly, you need to retrieve data from database in back-end code. Then build HTML table with data that already get from the database. Finally, you need to use ASP.NET Literal control in aspx page and assign Literal text with that HTML table in vb.NET code .
   

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