I have a Modal ModalPopupExtender on my page.
It is shown right before i do a redirect. Problem is that it doesn't show, it just redirects. If I comment out the Redirect it shows up. I question is, how do I get it to do both?
Heres the code I'm using.
Code:
Protected Sub btnRunSaveQuery_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnRunSaveQuery.Click
If Trim(Request.Form("ctl00$ContentPlaceHolder1$hdnbox")) = "Yes" Then
MyMPE.Show()
Response.Redirect(SaveQuery())
End If
HTML
HTML Code:
<asp:Panel ID="EditorPanel" runat="server" CssClass="modalPopup" Height="233px" Style="display: none"
Width="233px">
<br />
<br />
<br />
<center>
<table>
<tr>
<td style="width: 100px">
<img id="Img1" alt="" height="100" src="2.gif" width="100" /></td>
</tr>
</table>
</center>
</asp:Panel>
<a id="dummyLink" runat="server" href="#" onclick="return false;" style="display: none;
visibility: hidden;">dummy</a>
<cc1:modalpopupextender id="MyMPE" runat="server" backgroundcssclass="modalBackground"
behaviorid="MyMPE" dropshadow="true" popupcontrolid="EditorPanel" targetcontrolid="dummyLink">
</cc1:modalpopupextender>