Here is the structure of my web form 1 dropdown list with 3 items, Autopostback set to true 1 button Autopostback set to true Trapping dd1_selectedIndexChanged and btn1_clicked events Also I have overridden the RaisePostBack event of the page. When I click
the button the RaisePostBack fires and then the button clicked event. But when I change an item in the dropdown, the RaisePostBack is not fired at all. Per documentation, the RaisePostBack event should fire after the page raises changed events. So I expect
the RaisePostBack to happen after the selectedIndexChanged event fires. What is missing? Am I missing any property settings? thanks zaphod9
Just out of curiosity, why are you overriding RaisePostBackEvent? Also, what kind of button requires that AutoPostBack is set to true -- ? Any ordinary button will cause a submit automatically (???).
Oops. Button with Autopostback=true - Sorry this is a cut and past error. Please ignore. The button on the page is a regular submit which causes postback The page I am developing is much complicated than my example. I eliminated the other stuff to simplify
the page and isolate the issue. I have a page dirty check mechanism in place on the page and it prompts the user with a Do you want to save changes? If the user clicks yes, a hidden field is set to yes which is checked by the page on postback. During postback
the page calls Save on all its user controls in the RaisePostBack event if it sees a save=yes in the hidden field. To implement this scheme I need the page to be able to Raise the postback event when the postback happens because of a change in the dropdown.
thanks
zaphod9
Member
25 Points
5 Posts
RaisePostBack event on page not raised if it has a dropdown control
Oct 08, 2003 09:34 PM|LINK
mikepope
Contributor
5803 Points
1156 Posts
Microsoft
Re: RaisePostBack event on page not raised if it has a dropdown control
Oct 09, 2003 07:49 AM|LINK
zaphod9
Member
25 Points
5 Posts
Re: RaisePostBack event on page not raised if it has a dropdown control
Oct 09, 2003 01:41 PM|LINK