Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Avoid inserting twice when user refresh page in ASP.NET

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


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

About the Author

Matt Sollars
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. Pinmembermhamad zarif31-Aug-11 2:04 

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

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

| Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 29 Aug 2011
Article Copyright 2011 by Matt Sollars
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid