Click here to Skip to main content
15,885,931 members
Articles / Web Development / ASP.NET
Alternative
Tip/Trick

Avoid inserting twice when user refresh page in ASP.NET

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
29 Aug 2011CPOL 9.3K   1
I also think this would be best wrapped in a base Page class with a protected method that handles the evaluation (i.e., IsFirstSubmit()).
I also think this would be best wrapped in a base Page class with a protected method that handles the evaluation (i.e., IsFirstSubmit()).

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
I began programming on my Commodore 64 at around the age of 12. After migrating to DOS and then Windows, I decided to take on the Web. Several languages and platforms later, I have settled in with .NET nicely. I am currently the owner of a software consulting company and lead application developer for a learning-based technology consultation company.

The love of a finished application is usually at war with the desire to improve it as soon as it's released (they're never really finished).

Comments and Discussions

 
GeneralReason for my vote of 5 i agree. Pin
mhamad zarif31-Aug-11 2:04
mhamad zarif31-Aug-11 2:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.