Add database data to html table cell console app c#
how to Add database data to html table cell. my table consist 3 columns and nth rows(dynamically creates based on database data)
Know the answer? Post it. Somebody with the same question will find it here.
sudipta sanyalRank #1,945 · 753 reputationPosted May 12, 2014, 9:45 PM EDT
samantaRank #3,157 · 454 reputationPosted May 12, 2014, 9:58 PM EDT
actually i have created html template and i want to bind database data to that html.
how to do that
sudipta sanyalRank #1,945 · 753 reputationPosted May 12, 2014, 10:02 PM EDT
then
1. write a query which gives you all data
2. pick those data in a datatable or a dataset
3. write a loop on that datatable or dataset loop
4. now generate the tr td based on your loop and append the value with your control
samantaRank #3,157 · 454 reputationPosted May 12, 2014, 10:09 PM EDT
how to achieve this?
sudipta sanyalRank #1,945 · 753 reputationPosted May 13, 2014, 2:17 AM EDT
samantaRank #3,157 · 454 reputationPosted May 13, 2014, 3:46 AM EDT
i want to fill the table cell with database value one by one.
sudipta sanyalRank #1,945 · 753 reputationPosted May 14, 2014, 7:47 PM EDT
CREATE TABLE #temp_table (eid INT IDENTITY(1,1),ename NVARCHAR(200),esalary float,dep_id INT)
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts