Firefox重发消息

编程入门 行业动态 更新时间:2024-10-19 09:33:24
本文介绍了Firefox重发消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨.. 我正在使用ASP.NET开发一个Web应用程序。但是我收到以下消息: 要显示此页面,Firefox必须发送重复之前执行的任何操作(例如搜索或订单确认)的信息。 如何避免此消息??

Hi.. I am developing a web application using ASP.NET. But I am getting the following message: To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier. How to avoid this message??

推荐答案

As Dylan说: 引用文字:这意味着您尝试返回的上一页在技术上是要求网站做某事。可能就像在论坛上发帖一样或者在商店中订购产品。这就是为什么要求您提供有关重新发送的确认,以确保您不会在不需要的情况下结束。您知道如果您正在浏览一些不重要的随机网站,请继续重新发送或如果你正处于一些商业交易的中间,你可能不想重新发送。所以重要的是你可以选择。 因此,您的代码会导致某种重新提交或重新发布。 您需要检查代码。调试它并看到它。根据你的需要解决它。 As Dylan has said: Quoted text: "It means that the previous page you're trying to go back was technically a request for the website to do something. Could be like posting on a forum or ordering a product in a store. That's why you're asked for the confirmation about resending, to make sure you won't end up in unwanted situations. You know if you were browsing some random website of no importance, go ahead resend or if you're in middle of some business transaction, you probably don't want to resend. So it's important you're given the choice." So, your code is causing a refetch or repost of some sort. You need to check your code. DEBUG it and see it. Resolve it as per you need.

你好Akansha, 使用 Responce.Redirect(yourPagename.aspx,False) ; 这将解决您的问题。 它以布尔值响应。 并删除所有服务器。如果不需要,转移(pagename.aspx)。 Hi Akansha, Use Responce.Redirect("yourPagename.aspx",False); This will resolve your issue. It's responce in boolean. And also remove all Server.Transfer("pagename.aspx") if not required.

您好Akansha, 您可以使用Post / Redirect / Get Pattern来阻止此消息。 这意味着在每个Post语句之后,您必须重定向到另一个页面。 或者您可以使用Response.Redirect(PageName.aspx)重定向到同一页面,false); Hi Akansha, You can use Post / Redirect/ Get Pattern in order to prevent this message. That means after each "Post" statement, you must redirect to another page. Or you can redirect to same page by using Response.Redirect(" PageName.aspx " , false );

更多推荐

Firefox重发消息

本文发布于:2023-11-25 22:54:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1631675.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重发   消息   Firefox

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!