DropDownList not working

Discussion in '.NET' started by RBeach1955, Mar 30, 2011.

  1. RBeach1955

    RBeach1955

    Joined:
    Jan 13, 2011
    Messages:
    9
    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.
     
    RBeach1955, Mar 30, 2011
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bryan Poteet
    Replies:
    0
    Views:
    396
    Bryan Poteet
    Dec 4, 2003
  2. =?Utf-8?B?c2F2YWdl?=

    dropdownlist not working

    =?Utf-8?B?c2F2YWdl?=, Jun 13, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    314
    =?Utf-8?B?c2F2YWdl?=
    Jun 13, 2004
  3. Hermit Dave

    Re: dropdownlist box not working correctly

    Hermit Dave, Sep 2, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    414
    Hermit Dave
    Sep 2, 2004
  4. =?Utf-8?B?ZGhucml2ZXJzaWRl?=

    DropDownList.FindByValue.Selected not working... help!

    =?Utf-8?B?ZGhucml2ZXJzaWRl?=, Jan 10, 2005, in forum: ASP .Net
    Replies:
    10
    Views:
    10,817
    Eliyahu Goldin
    Jan 10, 2005
  5. sling blade
    Replies:
    3
    Views:
    2,705
    Burak SARICA
    Feb 28, 2005
Loading...

Share This Page