I want to display the values from database table on lable. please suggest me for solution
How to display database records on lable control..??
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Jul 10, 2017, 10:35 PM EDT
var table = new HtmlTable(); foreach (var row in yourData) { var tRow = new HtmlTableRow(); foreach (var cell in row.Select(item => new HtmlTableCell {InnerText = item})) { tRow.Cells.Add(cell); } table.Rows.Add(tRow); } Page.Controls.Add(table);Shweta LodhaRank #31 · 39.8K reputationPosted Jul 10, 2017, 10:01 PM EDT
Saurabh patil20 reputationPosted Jul 10, 2017, 10:15 PM EDT