No postback after setting SelectedValue

Discussion in 'ASP .Net' started by Charlie@CBFC, Nov 28, 2005.

  1. Charlie@CBFC

    Charlie@CBFC Guest

    Hi:

    I noticed that after setting SelectedValue of a dropdownlist to have an item
    selected in list, if you reselect the same item later, it will not postback.
    In most cases I can see that this behavoir is correct, however in the
    scenario I'm working on, I would like it to postback. How do I force it to
    postback?

    Thanks,
    Charlie
    Charlie@CBFC, Nov 28, 2005
    #1
    1. Advertising

  2. Charlie,

    Whenever you want to force a postback you can make a javascript call to
    myForm.submit().

    Eliyahu

    "Charlie@CBFC" <> wrote in message
    news:%...
    > Hi:
    >
    > I noticed that after setting SelectedValue of a dropdownlist to have an
    > item
    > selected in list, if you reselect the same item later, it will not
    > postback.
    > In most cases I can see that this behavoir is correct, however in the
    > scenario I'm working on, I would like it to postback. How do I force it
    > to
    > postback?
    >
    > Thanks,
    > Charlie
    >
    >
    Eliyahu Goldin, Nov 29, 2005
    #2
    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. AlecL
    Replies:
    5
    Views:
    929
    Lloyd Sheen
    Apr 10, 2007
  2. Bernard Borsu

    selectedvalue postback problem

    Bernard Borsu, Jul 4, 2007, in forum: ASP .Net
    Replies:
    8
    Views:
    460
    Bernard Borsu
    Jul 5, 2007
  3. Crazy Cat
    Replies:
    2
    Views:
    961
    Crazy Cat
    Sep 10, 2007
  4. David C

    Setting DropDownList SelectedValue

    David C, Nov 20, 2007, in forum: ASP .Net
    Replies:
    9
    Views:
    651
    Scott Roberts
    Nov 21, 2007
  5. J
    Replies:
    2
    Views:
    352
Loading...

Share This Page