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
 optgroup
Posted by nikita on  3/1/2012 4:51:08 AM Category: ADO.NET
Add to my favorites
Email to friend
How delete & edit row in a drop down list

Post Your Reply Post New Question

 Viewer's Reply
How delete & edit row in a drop down list
Answered By Yrui Kosenko on 3/5/2012 1:56:56 AM
1. Add DataSet - TA.GetData();
2. Add - Page Load()
{
public void ddlBind()
{
ddl.Items.Clear();
ddl.Items.Add("bla...bla...bla");
ddl.AppendDataBoundItems = true;
ddl.DataSource = TA.GetData();
ddl.DataValueField = "id";
ddl.DataTextField = "Text";
ddl.DataBind();
}
}
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Many .NET teams are underperforming, is yours?
When Good HTML Goes Bad: How You Can Protect Your Web Applications
The Art & Science of JavaScript - Free 100 Page Preview!