SelectedValue option unavailable in DropDownList!?

B

Brett

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top