Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DropDownList not working

Reply
Thread Tools

DropDownList not working

 
 
RBeach1955 RBeach1955 is offline
Junior Member
Join Date: Jan 2011
Posts: 9
 
      03-30-2011
I have an aspx page that has a listview. Within the listview I have a column named BADGEID. When inserting the BADGEID as a textbox with the below code, everything works properly:

<asp:TextBox ID="BADGE" runat="server" Text='<%# Bind("BadgeID") %>'

I need this to be a DropDownList and I changed the textbox above to the below:

<asp:DropDownList ID="BADGE" runat="server" DataSourceID="SqlDataSource2" DataTextField="BADGE" DataValueField="BADGE" />

The listbox contains the items I need but when I send the information, the item selected in the DropDownList is not sent to the database.

Please let me know what I am missing or doing wrong. This is the first aspx with a DropDownList I have ever created.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
wifi not working on new hp, or not working after live update =?Utf-8?B?RHJhZ29ueA==?= Wireless Networking 1 10-01-2005 11:17 PM
DropDownList.FindByValue.Selected not working... help! =?Utf-8?B?ZGhucml2ZXJzaWRl?= ASP .Net 10 01-10-2005 10:04 PM
Re: dropdownlist box not working correctly Hermit Dave ASP .Net 0 09-02-2004 04:10 PM
dropdownlist not working =?Utf-8?B?c2F2YWdl?= ASP .Net 0 06-13-2004 10:03 PM
DropDownList SelectedIndex value is not working for the last item. Bryan Poteet ASP .Net 0 12-04-2003 06:06 PM



Advertisments