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
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.
>
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
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)
{