简体   繁体   English

每当我尝试刷新页面时,获取消息

[英]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.

相关问题 为什么每次尝试发布项目时都会出错? - Why I get error whenever I try to publish the project? 每当我尝试连接数据库时都会收到错误消息 - I get an error whenever I try to connect database 每当我尝试使用我的课程时,都会出现错误 - Whenever I try to use my class, I get an error UNITY - 每当我尝试从另一个脚本获取变量时崩溃 - UNITY - Crashes whenever I try to get a variable from another script 现在将.net Framework 3.5转换为4.0时,每当我尝试执行回发时,都会收到脚本错误 - Converted .net framework 3.5 to 4.0 now i get a scripting error whenever i try to do a postback 每当我尝试`writeBytes`时,libnodave都会超时 - libnodave times out whenever I try to `writeBytes` 我正在尝试创建一个上传文件按钮,但每当我尝试使用文件时,我都会收到错误“空路径名称不合法” - I am trying to create an upload file button, but whenever I try and use a file I get the error “Empty path name is not legal” 刷新gridview时如何进入page1? - How to get to page1 when I refresh my gridview? 必要时从Azure Service Bus获取消息 - Get the message from Azure Service Bus whenever needed 当我尝试启动 C# 代码时收到消息“找不到任务‘构建’” - I get the message ''could not find the task 'build'" when I try to start my C# code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM