Wow, that last posting didn't wrap very well did it.  Here is the sample
code hopefully in a more readable format:

myDropDownList1.DataSource = your dataset table 
myDropDownList1.DataTextField = column to display 
myDropDownList1.DataValueField = column to assign list option 
myDropDownList1.DataBind();

So your code should look something like this:

myDropDownList1.DataSource = myDataSet.myTableName;
myDropDownList1.DataTextField = "column1";
myDropDownList1.DataValueField = "column2";
myDropDownList1.DataBind();

Best I can do with the line breaks, hope this turns out better.

John Black

---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/


Reply via email to