Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
when i refresh page on Ie by ctrl+f5
 
why click event of save button get fired
 
how can i hendle this because it inserts records in database ?
 
i have checked code on ".cs" file
not fired event forcefully
 

thanks
Posted 16-Feb-13 5:00am
Comments
Tadit Dash at 16-Feb-13 11:00am
   
Look at the code carefully. You must be doing something on load of page, which is causing the button click event to fire.
 
It may also be in client side javaScript or jQuery code.
I mean if you have written any code in document or window load in client-side to call the button click, then it may be due to this.
 
Otherwise, put some code here to look at by clicking on "Improve question" link.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This is somewhat common issue faced if your page workflow design is so.
 
Have a look at these articles on how to handle it:
Refresh Page Issue in ASP.Net[^]
Stop Refresh after Submitting your Request[^]
Detecting Page Refresh[^]
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 16 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100