Re: [DOTNET] DropDownList binding

2002-05-03 Thread Steve Holak
8 p.m. To: [EMAIL PROTECTED] Subject: [DOTNET] DropDownList binding I am trying to bind a DropDownList to a sqlDataReader. I get the correct amount of options in the list, but the text is 'System.Data.Common.DbDataRecord' for all the options in the list. What am I doing wrong? private

Re: [DOTNET] DropDownList binding

2002-05-02 Thread Shawn Wildermuth
PROTECTED] > Subject: Re: [DOTNET] DropDownList binding > > > If you don't specify a DataTextField in the drop down list's > properties, then I think it just defaults to calling > ToString() on each Data Item. > > You probably also need a DataValueField. >

Re: [DOTNET] DropDownList binding

2002-05-02 Thread Kirk Jackson
ED]] Sent: Thursday, 2 May 2002 9:18 p.m. To: [EMAIL PROTECTED] Subject: [DOTNET] DropDownList binding I am trying to bind a DropDownList to a sqlDataReader. I get the correct amount of options in the list, but the text is 'System.Data.Common.DbDataRecord' for all the options in the list. W

[DOTNET] DropDownList binding

2002-05-02 Thread Dawid Greyvenstein [AST EH]
I am trying to bind a DropDownList to a sqlDataReader. I get the correct amount of options in the list, but the text is 'System.Data.Common.DbDataRecord' for all the options in the list. What am I doing wrong? private void Page_Load(object sender, System.EventArgs e) {