Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SelectedValue option unavailable in DropDownList!?

0 views
Skip to first unread message

Brett

unread,
Oct 7, 2008, 10:21:28 AM10/7/08
to
Hello,

I'm hoping someone can help because I've been tearing my hair out over this!

I have GridView with a DropDownList control in the Edit Template. I want to
set the selected item for the relevant value of a record.

On the MS website it says to do this:

<asp:DropDownList ID="DropDownList1" runat="server" SelectedValue='<%#
Bind("AddressType") %>' >

My problem is that the SelectedValue option just ISN'T there! Can anyone
advise?

I'm running in a Windows 2003 server with .net 2, 3.0 and 3.5 installed.

Regards


0 new messages