AspdotnetCodes.com
Voted 'Best ASP.NET Host' for 2008 – DiscountASP.NET
 
Articles Subscribe for our Articles Updates
Books
Resources
Downloads
Free Tech Magazines
Archives
Softwares
Newsletter
Suggest Us
Link to Us
 lables
Posted by subhranshu on  4/2/2008 1:42:08 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend
  
how to create lables from database dynamically.means if 20 fields are in database then 20 fields will display in lable control. how to solve please let me know urgent.

Post Answer Post New Question

 Viewer's Answers
Label control
Posted By Georgi on 4/2/2008 9:29:28 AM
Description:
If I understand you right, you want to create a Label controls dinamiclly.
If so for every value that you want to display from the database you can do:

Label l = new Label();
l.Text = "The value from the database here";
this.Form.Controls.Add(l);
 
Sponsored by