双重POSTBACK [英] Double POSTBACK

查看:65
本文介绍了双重POSTBACK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在Framework 4.0中有一个应用程序ASP.NET MV而不是MVC 3.0版



问题我当时保存了一些数据,他们在数据库中复制了我,查看了IIS 7.0日志,我看到用户发了一个POST,我看到有两个,唯一的区别是
sc-win32-status,状态为64表示指定的网络不再可用。
调查一下该错误,我在版本3.5中看到了早些时候已经给出了bug,但在后来的版本中,微软已经解决了它。



它只发生一次,系统每天都在使用并且每天有来自多个用户的数千条记录。

解决方案



如果您使用的是按钮单击事件然后查看源并删除(注释掉)Handles部分并再次检查。

受保护的Sub Button1_Click(发送者为对象,e为EventArgs)处理Button1.Click'<  - 注释掉

结束子




然后再次检查


I have an application in Framework 4.0 ASP.NET VB over MVC version 3.0

The problem I had was that when I saved some data, they duplicated me in the database, reviewing the IIS 7.0 log, I see a POST that the user made and I see that there are two, the only difference between one and another is sc-win32-status, with status 64 meaning The specified network is no longer available. Investigating a bit that error, I saw that in version 3.5 and earlier that bug was given but in the later version and Microsoft had resolved it.

It has only happened once, the system is used daily and with thousands of records daily, from multiple users.

解决方案

Hi,

If you're using a Button Click event then view source and remove (comment out) the Handles part and check again.

    Protected Sub Button1_Click(sender As Object, e As EventArgs) ' Handles Button1.Click ' <-- commented out

    End Sub


Then check again


这篇关于双重POSTBACK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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