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
Speech Technology Magazine
The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition - Free 207 Page Preview!
Building a Web Application Security Program