Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Comments
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

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[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900