locked
Double POSTBACK RRS feed

  • Question

  • 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.

    • Edited by Barrientostl Wednesday, April 4, 2018 8:14 PM
    • Moved by Reed KimbleMVP Thursday, April 5, 2018 11:48 AM asp.net in vb language
    Wednesday, April 4, 2018 8:02 PM

All replies

  • 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

    Homepage | Twitter

    Wednesday, April 4, 2018 8:12 PM
  • Questions about ASP.Net web applications should be posted to https://forums.asp.net


    Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

    Wednesday, April 4, 2018 9:30 PM
  • ASP.NET is a terrible place as no-one answers questions they just post links.

    Homepage | Twitter

    Wednesday, April 4, 2018 9:33 PM
  • MVC issues can be addressed at the ASP.NET MVC forum at ASP.NET forums.

    http://forums.asp.net/

    Wednesday, April 4, 2018 9:34 PM
  • Perhaps some of the users pressed Submit button multiple times accidentally. To avoid this, maybe disable the button after the first click using JavaScript. Then the JavaScript area of https://forums.asp.net should help.

    Thursday, April 5, 2018 6:17 AM
  • ASP.NET is a terrible place as no-one answers questions they just post links.

    Homepage | Twitter

    I suggest you proceed to the ASP.NET mountain, because there a few people there that will help. :)

    Thursday, April 5, 2018 7:08 AM