Saturday August 1st

Friday July 31st

Thursday July 30th

Wednesday July 29th

Detect Browser refresh to avoid events getting fired again in ASP .NET

If you have created a aspx page using C# and ASP.NET and have put a button on it , and in the Click event of this button if you are inserting some data in database , after click if user refresh the page than click event gets fired again resulting data insertion to database again, to stop events on the page getting fired on browser refresh we need to write bit of code to avoid it In this example i've put a Label and a Button on the page, on click the label Text becomes Hello and when i refresh the page label's text again becomes Hello

0 comments

Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network