DropDownList events not firing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Waldy

    DropDownList events not firing

    Hi there,
    I have a web form with some DropDownList controls that I am
    trying to trap the selection change and run the attached server code.
    However, even thought the controls have the runat property set to server,
    the event code does not get executed. Anyone have any ideas?


  • Madhur

    #2
    Re: DropDownList events not firing

    Can you post some code ? Make sure that AutoPostBack property of
    DropDownList is set to True.

    --
    Madhur

    "Waldy" <someone@micros oft.comwrote in message
    news:OYZSo0CsIH A.4876@TK2MSFTN GP02.phx.gbl...
    Hi there,
    I have a web form with some DropDownList controls that I am
    trying to trap the selection change and run the attached server code.
    However, even thought the controls have the runat property set to server,
    the event code does not get executed. Anyone have any ideas?
    >

    Comment

    • Waldy

      #3
      Re: DropDownList events not firing


      "Madhur" <sdf@df.comwrot e in message
      news:689729EC-570C-4571-9596-D2BC853306B5@mi crosoft.com...
      Can you post some code ?
      Not easily as it is a large project.
      >Make sure that AutoPostBack property of DropDownList is set to True.
      I tried that, and now the form gets posted back when a selection is made,
      but the dropdown events code still does not get executed.


      Comment

      • David Wier

        #4
        Re: DropDownList events not firing

        Please be more specific

        The two comments you made contradict each other. When you make a selection,
        the Dropdownlist OnselectedChang ed event is the event that's firing, to
        cause the postback.

        What (exactly) are you referring to when you say "dropdown events code"

        David Wier

        http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
        bloated markup


        "Waldy" <someone@micros oft.comwrote in message
        news:OjftqYEsIH A.5068@TK2MSFTN GP02.phx.gbl...
        >
        "Madhur" <sdf@df.comwrot e in message
        news:689729EC-570C-4571-9596-D2BC853306B5@mi crosoft.com...
        >Can you post some code ?
        >
        Not easily as it is a large project.
        >
        >>Make sure that AutoPostBack property of DropDownList is set to True.
        >
        I tried that, and now the form gets posted back when a selection is made,
        but the dropdown events code still does not get executed.
        >

        Comment

        • Waldy

          #5
          Re: DropDownList events not firing

          Hi David,
          The two comments you made contradict each other. When you make a
          selection, the Dropdownlist OnselectedChang ed event is the event that's
          firing, to cause the postback.
          The page is re-loaded.
          What (exactly) are you referring to when you say "dropdown events code"
          The OnSelectedIndex Changed code in the code behind file.


          Comment

          Working...