Click here to Skip to main content
14,663,792 members
Home » Discussions » ASP.NET
   

ASP.NET

 
GeneralRe: Refresh button resubmitting data - How to prevent this? Pin
pramodgorityala18-Mar-10 3:23
Memberpramodgorityala18-Mar-10 3:23 
GeneralRe: Refresh button resubmitting data - How to prevent this? Pin
Not Active18-Mar-10 3:29
mentorNot Active18-Mar-10 3:29 
GeneralRe: Refresh button resubmitting data - How to prevent this? Pin
T M Gray18-Mar-10 8:36
MemberT M Gray18-Mar-10 8:36 
GeneralRe: Refresh button resubmitting data - How to prevent this? Pin
Not Active18-Mar-10 8:58
mentorNot Active18-Mar-10 8:58 
GeneralRe: Refresh button resubmitting data - How to prevent this? Pin
T M Gray18-Mar-10 10:05
MemberT M Gray18-Mar-10 10:05 
GeneralRe: Refresh button resubmitting data - How to prevent this? Pin
Not Active18-Mar-10 11:56
mentorNot Active18-Mar-10 11:56 
AnswerRe: Refresh button resubmitting data - How to prevent this? Pin
saini arun18-Mar-10 20:24
Membersaini arun18-Mar-10 20:24 
AnswerRe: Refresh button resubmitting data - How to prevent this? Pin
Dinesh Mani18-Mar-10 21:14
MemberDinesh Mani18-Mar-10 21:14 
When you know for sure that the users are bound to click the browser's refresh button to refresh the screen, why not put a refresh button on screen along side the data that they expect to be updated and perform a refresh of just that data?

That was just a suggestion to improve your application. Now to the solution to your problem.

Once the save is completed, just register a client script that would make a fresh request for the page. You can do so by calling window.location.reload() or window.location.url='PageName.aspx';

This would refresh the page and the next time Refresh/F5 is hit only page load is posted not the button click.

NOTE: Register either of these scripts from the server after the button click, don't directly add it on the existing javascript blocks.

HTH!!!
GeneralRe: Refresh button resubmitting data - How to prevent this? Pin
saanj18-Mar-10 23:36
Membersaanj18-Mar-10 23:36 
AnswerRe: Refresh button resubmitting data - How to prevent this? Pin
Arun Jacob18-Mar-10 23:50
MemberArun Jacob18-Mar-10 23:50 
QuestionPerformance: Many small file downloads Pin
Pavolh18-Mar-10 1:42
MemberPavolh18-Mar-10 1:42 
AnswerRe: Performance: Many small file downloads Pin
Aman Bhullar18-Mar-10 2:04
MemberAman Bhullar18-Mar-10 2:04 
AnswerRe: Performance: Many small file downloads Pin
R. Giskard Reventlov18-Mar-10 2:19
MemberR. Giskard Reventlov18-Mar-10 2:19 
GeneralRe: Performance: Many small file downloads Pin
Pavolh18-Mar-10 3:33
MemberPavolh18-Mar-10 3:33 
QuestionTypical String Manipulation [modified] Pin
Satish - Developer17-Mar-10 23:40
Member Satish - Developer17-Mar-10 23:40 
AnswerRe: Typical String Manipulation Pin
Sneha Bisht18-Mar-10 0:54
MemberSneha Bisht18-Mar-10 0:54 
GeneralRe: Typical String Manipulation Pin
Satish - Developer18-Mar-10 2:22
Member Satish - Developer18-Mar-10 2:22 
GeneralRe: Typical String Manipulation Pin
Not Active18-Mar-10 2:36
mentorNot Active18-Mar-10 2:36 
AnswerRe: Typical String Manipulation Pin
JHizzle18-Mar-10 1:45
MemberJHizzle18-Mar-10 1:45 
GeneralRe: Typical String Manipulation Pin
Satish - Developer18-Mar-10 2:07
Member Satish - Developer18-Mar-10 2:07 
GeneralRe: Typical String Manipulation Pin
JHizzle18-Mar-10 3:53
MemberJHizzle18-Mar-10 3:53 
AnswerRe: Typical String Manipulation Pin
Not Active18-Mar-10 2:46
mentorNot Active18-Mar-10 2:46 
GeneralRe: Typical String Manipulation Pin
Satish - Developer18-Mar-10 3:01
Member Satish - Developer18-Mar-10 3:01 
GeneralRe: Typical String Manipulation Pin
Not Active18-Mar-10 3:04
mentorNot Active18-Mar-10 3:04 
Questionhow to give access permission on menu control based on user type from database using asp.net wit c# Pin
developerit17-Mar-10 22:19
Memberdeveloperit17-Mar-10 22:19 

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

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