【发布时间】:2011-04-28 09:16:56
【问题描述】:
我有一个弹出窗口,在成功保存到数据库后显示。它显示“密码已成功保存”并且还有一个“确定”按钮。我希望在单击“确定”时关闭弹出窗口,并应将其重定向到登录页面。在这里使用我的代码,它会保存,显示弹出窗口,单击“确定”时,它会停留在同一页面上。请帮我解决这个问题!提前致谢!!
protected void btnOK_Click(object sender, EventArgs e)
{
Response.Redirect(ApplicationData.URL_MERCHANT_SIGNUP_PAGE, false);
Session.Remove("Info");
}
<table id="pnlPopup" runat="server" style="display:none">
<tr>
<td>
<asp:Panel ID="Panel1" runat="server" CssClass="modalPopup">
<table width="350" height="80" class="warningPopup">
<tr>
<td>
<img src="images/warning_blue.gif" alt="Warning" />
</td>
<td colspan="2" align="left" style="padding-left: 75px; padding-top: 10px;">
Your password is succesfully been saved.
</td>
</tr>
<tr>
<td align="center" colspan="4">
<asp:Button id="btnOK" Text ="OK" runat = "server" OnClientClick="$find('mdlpop').hide(); return true;" onclick="btnOK_Click" />
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
</table>
【问题讨论】: