如何防止按下F5按钮并使用ASP .NET C#在浏览器中重新加载图像 [英] How can I prevent pressing F5 button and reload image click in browser using ASP .NET C#

查看:85
本文介绍了如何防止按下F5按钮并使用ASP .NET C#在浏览器中重新加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我需要阻止用户单击F5按钮并在浏览器中重新加载图像,因为通过单击F5按钮并重新加载图像两次它会带我运行时错误。如何防止它



我尝试了什么:



i尝试了javascript代码但是我正在得到相同的

In my application i need to prevent user clicking F5 button and reload image in browser because by clicking F5 button and Reload image twice it is taking me to run time error.How can i prevent it

What I have tried:

i tried javascript codes but stiil i am getting the same

推荐答案

引用:

如何防止按下F5按钮并使用ASP在浏览器中重新加载图像.NET C#

How can I prevent pressing F5 button and reload image click in browser using ASP .NET C#



简答:你没有。您无法控制浏览器的客户端。


Short answer: you don't. You don't have control of client side of browser.

Quote:

在我的应用程序中我需要阻止用户单击F5按钮并在浏览器中重新加载图像,因为通过单击F5按钮并重新加载图像两次,它将带我运行时错误。如何防止它

In my application i need to prevent user clicking F5 button and reload image in browser because by clicking F5 button and Reload image twice it is taking me to run time error.How can i prevent it



调试代码


Debug your code


这篇关于如何防止按下F5按钮并使用ASP .NET C#在浏览器中重新加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆