DropDownList not working

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

  1. RBeach1955

    RBeach1955

    Joined:
    Jan 13, 2011
    Messages:
    9
    Likes Received:
    0
    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. Advertisements

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:
    503
    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:
    398
    =?Utf-8?B?c2F2YWdl?=
    Jun 13, 2004
  3. =?Utf-8?B?ZGhucml2ZXJzaWRl?=

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

    =?Utf-8?B?ZGhucml2ZXJzaWRl?=, Jan 10, 2005, in forum: ASP .Net
    Replies:
    10
    Views:
    11,256
    Eliyahu Goldin
    Jan 10, 2005
  4. sling blade
    Replies:
    3
    Views:
    2,905
    Burak SARICA
    Feb 28, 2005
  5. =?Utf-8?B?cnQ=?=
    Replies:
    2
    Views:
    1,873
    =?Utf-8?B?cnQ=?=
    Jun 7, 2005
  6. =?Utf-8?B?c3Jp?=
    Replies:
    5
    Views:
    4,892
    =?Utf-8?B?c3Jp?=
    Aug 23, 2005
  7. =?Utf-8?B?UGF1bA==?=

    this.Dropdownlist not working

    =?Utf-8?B?UGF1bA==?=, Jan 18, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    517
    Karl Seguin [MVP]
    Jan 18, 2006
  8. =?Utf-8?B?aW5kaWdhdG9y?=

    Dropdownlist Autopostback not working

    =?Utf-8?B?aW5kaWdhdG9y?=, Mar 16, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    8,665
Loading...