asp.net prevent form submission twice
        Posted  
        
            by d3020
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by d3020
        
        
        
        Published on 2010-03-26T20:37:01Z
        Indexed on 
            2010/03/26
            20:43 UTC
        
        
        Read the original article
        Hit count: 497
        
I have a web forms web application (asp.net 2.0). When the user submits the form I have the submit link actually going away so they can't submit it again. However, they could press F5 and that is causing another insert into the database, which I don't want to have happen.
Is there a setting of some sort that I can set if/when they do press F5 to tell the page - don't submit again?
© Stack Overflow or respective owner