Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
http://tinypic.com/r/b4zqis/8

Hi. Above is the table I want to create. Company name, Bussiness Unit and Department I am fetching from database.

Now through javascript, I want to bind the page with this data. I am getting the data fine. Problm is designing. Kindly help
Posted
Updated 5-Nov-14 2:25am
v2

1 solution

Node.js, Angular.js, Knockout.js or any number of other libraries of that type.

If you're really into doing it yourself, at least use jQuery not plain javascript.

The way to do it is to create template element (which will of course be invisible) and which you will then fill with the data by iterating over the results.

That said, since you are working with ASP.NET, why aren't you using asp:Repeater, GridView or some other "table" control and simply set its DataSource?

If this helps, please take time to accept the answer. Thank you.
 
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