Michael,
  The drop down list works a bit differently than other controls, you need
to bind to the members of the drop down list rather than to the control
itself.  For example:

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

So your sode should look something like this:

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

Hope this helps!

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