Post Back Issues

Last post 04-25-2007 9:11 AM by sbrauen. 2 replies.

Sort Posts:

  • Post Back Issues

    04-24-2007, 3:32 PM
    • Loading...
    • sbrauen
    • Joined on 12-13-2006, 9:42 PM
    • Houston, TX
    • Posts 32
    Does anyone know why a DropDownList, located within an UpdatePanel, will not post back it's selected value when it is set via JScript and a __doPostBack is executed, but it will post back it's selected value if it is manually selected and the post back is handled automatically?
  • Re: Post Back Issues

    04-25-2007, 3:57 AM
    • Loading...
    • benderm
    • Joined on 01-16-2007, 8:47 AM
    • Denver, CO
    • Posts 312
    The SelectedIndexChanged event can't only be fired by the client changing the index and isn't fired when the selected index is changed programmatically.  This is always true, not only when it is in an UpdatePanel.  So this is why you are seeing this behavior.


    Don't forget to click "Mark as Answer" on the post that helped you.
    This marks your thread as Resolved so we will all know you have been helped.
  • Re: Post Back Issues

    04-25-2007, 9:11 AM
    • Loading...
    • sbrauen
    • Joined on 12-13-2006, 9:42 PM
    • Houston, TX
    • Posts 32
    I know the SelectedIndex event can't fire if the changes are done programmatically, that's why I'm manually calling the __doPostBack.  I've figured out how to pull the data directly using either the __EVENTTARGET or __EVENTARGUMENT keys from Request.Form but what I really want is to be able to manipulate the drop down object, not just it's data.
Page 1 of 1 (3 items)
Microsoft Communities
Page view counter