Well, I want my ImageButton! Therefore I added to the Page_Load method of my page or control this little piece of code to fix the bug:
private void FixPopupFormSubmit()
{
var script =
@"if (Sys&&Sys.WebForms&&Sys.WebForms.PageRequestManager&&Sys.WebForms.PageRequestManager.getInstance) {
var prm=Sys.WebForms.PageRequestManager.getInstance();
if (prm&&!prm._postBackSettings) prm._postBackSettings=prm._createPostBackSettings(false, null, null);
}";
ScriptManager.RegisterOnSubmitStatement(Page, Page.GetType(), "FixPopupFormSubmit", script);
}
Hope it helps you all.
8 comments:
Thanks a ton!
Thanks mate! Your post just saved me from going insane!
I guess it is better than nothing, but I get really agitated when I inherit code from someone and it has voodoo it like this.
thanks, it just gets fixed
This solved my problem. All the other "solutions" are like scrounging around in the dark.
Loved it. Great !! boss.
Brilliant! Saved me lots of time I guess ;)
Thanks a lot !
You are a life Saver Man..........
Post a Comment