AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 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 Your Reply Post New Question

 Viewer's Reply
Label control
Answered By Georgi on 4/2/2008 9:29:28 AM
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);
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Washington Technology
Building a Web Application Security Program
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview