Click here to Skip to main content
11,935,066 members (52,411 online)
Rate this:
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

Posted 16-Feb-13 5:00am
Tadit Dash 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
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[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 16 Feb 2013
Copyright © CodeProject, 1999-2015
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