[英]Get the message, whenever I try to refresh the page
I have one web page with Model Pop-up. 我有一个带有模型弹出窗口的网页。
Without any submit when I close this pop-up and Refresh page, Browser give me message like this... 当我关闭此弹出窗口和刷新页面时,没有任何提交,浏览器给我这样的消息...
----------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------
FIREFOX message FIREFOX消息
GOOGLE CHROME message GOOGLE CHROME讯息
----------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------
and if I click on Resend or Continue button, browser again give me my Model Pop-Up. 如果单击“重新发送”或“继续”按钮,浏览器将再次向我提供“模型弹出窗口”。
How can I fix this problem?? 我该如何解决这个问题?
----------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------
This is my code for display Pop-up 这是我的显示弹出窗口的代码
protected void applynow_Click(object sender, ImageClickEventArgs e)
{
pa1.Visible = true;
mo1.Show();
}
to prevent an unwanted POST while refreshing your page after a previous POST, use Post/Redirect/Get (PRG) pattern. 为防止在上一次POST之后刷新页面时发生不必要的POST,请使用“发布/重定向/获取(PRG)”模式。 after posting your page send a 302/303 response to your client browser and ask it redirect and initiate a get request.
发布页面后,将302/303响应发送到客户端浏览器,并要求其重定向并发起get请求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.