First off, im sorry for posting this, I know the question has been up a lot of times but none of the answers I found seem to solve my problem.
I have a modalpopup on a page and inside the modal's popup box I have a custom usercontrol. This usercontrol is a login form that either validates and sends the user to another page or fails and returns an error.
Now I found 2 solutions for this, ill post them and the reason I can't use them.
1. Put an updatepanel inside the modal's popup window.
This would solve the problem that the modalpopup dissapears after postback (when a wrong username is entered). However I run into a problem, it seems like Response.Redirect isn't working when doing a postback form inside an update panel.
2. Modalpopupcontrol.Open() (Or something like that) in code-behind
This would make the whole-page-postback a lot less painful but my problem is I can't access the ModalPopupExtender from inside the Custom User Control.
I have tried something along the lines of
Page.RegisterStartupScript("reopenPopup",<script type=\"text/javascript\">$find('ctl00_ctrl00_mdlPopup').show()</script>") But it didn't do anything.
So does anyone have a solution? Best would be if someone know of a way to make a response.redirect from inside an UpdatePanel.