drop down list in repeater not firing?

Discussion in 'ASP .Net Web Controls' started by Jeremy Mack, Nov 8, 2005.

  1. Jeremy  Mack

    Jeremy Mack Guest

    Below is the static drop down list that appears in a repeater. What i
    don't understand is why, when I select ANY of my dropdownlists written
    out the repeater they wont fire the dd_rating_IndexChanged subroutine.
    But when i take the dropdownlist OUT of the repeater.. it fires the sub
    no problem? what am i missing here?

    In the ASP.net:
    <asp:DropDownList ID="dd_rating" runat="server" AutoPostBack=True
    OnSelectedIndexChanged="dd_rating_IndexChanged">
    <asp:ListItem Value="1">Rate 1</asp:ListItem> <asp:ListItem
    Value="2">Rate 2</asp:ListItem>
    </asp:DropDownList>

    In the codebehind:
    Public Sub dd_rating_IndexChanged(ByVal sender As System.Object, ByVal
    e As System.EventArgs)
    Dim drop As DropDownList = CType(sender, DropDownList)
    Response.Write(drop.SelectedItem.Text)
    End Sub
    Jeremy Mack, Nov 8, 2005
    #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. SirPoonga
    Replies:
    2
    Views:
    738
    Ben Strackany
    Jan 7, 2005
  2. weiwei
    Replies:
    0
    Views:
    997
    weiwei
    Jan 5, 2007
  3. Replies:
    1
    Views:
    390
  4. msimmons
    Replies:
    0
    Views:
    453
    msimmons
    Jul 16, 2009
  5. Replies:
    5
    Views:
    248
Loading...

Share This Page