DropDownList Pain

Discussion in 'ASP .Net' started by =?Utf-8?B?S1JN?=, May 25, 2005.

  1. Have a DropDownList whose selection modifies child dropdownlists. I cannot
    get the OnSelectedIndexChanged event to fire. In the aspx page I have:

    <asp:dropdownlist onselectedindexchanged="UpdateDependentDropdown" ... >

    In the code behind, in the InitializeComponent routine, I have:

    this.DropDownList.SelectedIndexChanged += new
    System.EventHandler(this.UpdateDependentDropdown)

    When I insert a breakpoint in the UpdateDependentDropdown function, it never
    gets hit. Any ideas as to why?

    thanks
     
    =?Utf-8?B?S1JN?=, May 25, 2005
    #1
    1. Advertising

  2. I think you forgot to set AutoPostBack property of dropdownlist to true.

    regards
    charmis
     
    charmis p varghese, May 25, 2005
    #2
    1. Advertising

  3. Unfortunately, that is not the case. AutoPostback is set to True.

    "charmis p varghese" wrote:

    > I think you forgot to set AutoPostBack property of dropdownlist to true.
    >
    > regards
    > charmis
    >
    >
    >
     
    =?Utf-8?B?S1JN?=, May 25, 2005
    #3
    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. Olaf Petzold
    Replies:
    12
    Views:
    7,471
    Rob Dekker
    Dec 23, 2005
  2. Daniel Manes

    Code-Behind Pain in the Behind!

    Daniel Manes, Jun 10, 2005, in forum: ASP .Net
    Replies:
    11
    Views:
    670
  3. Brent White

    Sorry to be such a pain

    Brent White, Oct 24, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    552
    Juan T. Llibre
    Oct 25, 2005
  4. =?Utf-8?B?TWlrZUppbmdKaW5n?=

    HELP Access DB, ASP.NET 2.0 and whole lot of pain

    =?Utf-8?B?TWlrZUppbmdKaW5n?=, Dec 6, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    475
    Patrice
    Dec 6, 2005
  5. CMM

    Localization still a pain?

    CMM, Apr 19, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    457
Loading...

Share This Page