在刷新浏览器记录重新开始 [英] At Refresh Browser Record Re Inserated

查看:88
本文介绍了在刷新浏览器记录重新开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我开发了asp.net web应用程序。问题是,当我在浏览器上插入记录并单击刷新按钮时,时间记录被重新插入...与更新相同。

解决方案

这是常见的行为方式ASP.NET工作。当您在浏览器上点击刷新时,将重复上一个操作。在你的情况下插入记录。



要理解并克服这个问题,请看这些:



在ASP.NET中检测刷新或回发 [ ^ ]



在c#页面刷新中阻止button_click事件 [ ^ ]



检测浏览器刷新避免事件在ASP.NET中触发 [ ^ ]

hi,
i developed asp.net web application. The problem is that when i insert record and click refresh button on browser that time record is Re-Inserted..same with update.

解决方案

This is common behavior of how ASP.NET works. When you hit refresh on browser,the last action will be repeated. In your case inserting records.

To understand and overcome this issue see these :

Detecting Refresh or Postback in ASP.NET[^]

Prevent button_click event in page refresh in c#[^]

Detect Browser Refresh Avoid Events Fire In ASP.NET[^]


这篇关于在刷新浏览器记录重新开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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