Page refresh problem
-
hi there, this article might give u a hint for this issue http://www.codeproject.com/aspnet/SyncControl.asp Happy programming << >>
-
Hi Mihir, Try the following chunk of code. It working finely in my project. Let me know if it works. Response.Cache.SetExpires(DateTime.Now.AddDays(-1)); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetValidUntilExpires(false);
-
hi chetan, thanks for your interest.. no, this code only prevent page display from the cache Mihir..
Hi, Thanx for reply. I have one more solution but I will block only "F5" key of ur key board. If u r not displaying the toolbar in ur browser then it will work fine. function checkkey() { if(event.keyCode == 116) { event.keyCode = 0; return false; } }
-
Hi, Thanx for reply. I have one more solution but I will block only "F5" key of ur key board. If u r not displaying the toolbar in ur browser then it will work fine. function checkkey() { if(event.keyCode == 116) { event.keyCode = 0; return false; } }
hi there, how about if user want to refresh the web page by right-clicking on the page ? << >>
-
hi there, how about if user want to refresh the web page by right-clicking on the page ? << >>
Hi, For that I have solution. try this one.
-
hi all, has anybody idea, how to stop previous request when user refresh the page? More Description... I have 1 Page that have 3 textbox(for entry) and 1 button(Save). on save button click i wrote code to insert data into the database and clear the textbox for new entry and display a message that 'record has been saved'. Now problem is what, when user refresh the page, button click event is re-fired and new record is insered with same previous value. To solve this problem i am checking the same record in database but it is not a good option to solve this problem as per my thinking.. If anybody has solution of this problem, plz help me Thank you(in advance) :(( Mihir..
-
hi all, has anybody idea, how to stop previous request when user refresh the page? More Description... I have 1 Page that have 3 textbox(for entry) and 1 button(Save). on save button click i wrote code to insert data into the database and clear the textbox for new entry and display a message that 'record has been saved'. Now problem is what, when user refresh the page, button click event is re-fired and new record is insered with same previous value. To solve this problem i am checking the same record in database but it is not a good option to solve this problem as per my thinking.. If anybody has solution of this problem, plz help me Thank you(in advance) :(( Mihir..
-
One common solution is to do a redirect back to the page. That way the request no longer contains any form data. --- b { font-weight: normal; }
Yes the way u suggested is good. but can we say its a feasible solution?
-
Yes the way u suggested is good. but can we say its a feasible solution?
-
Hi, For that I have solution. try this one.
yep I got this. thanx Chetan << >>