473,473 Members | 2,207 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How prevent users from using BACK button in ASP.net?

I'm writing a database application in asp.net, and I'm worried that the
users will sometimes click the BACK button in their browser, thus
making some pages re-execute, and possibly messing up the databases.
How can this be prevented? Can I prevent prior pages from being cached
by the browser, so that the user has to click on REFRESH to see the
page again? If I can do that, I would force the prior page to
re-execute, and maybe that would be good because I could test for some
session variable that holds the most recent page seen. This might tell
the page whether it is being reached by the Back button or not. So
basically I have 2 questions, how to prevent browser caching, and how
to prevent the BACK button from causing trouble.
Thanks,
CohenMarvin

Nov 19 '05 #1
2 3866
> basically I have 2 questions, how to prevent browser caching, and how
what have you tried do far? There are differnet setting to expire the
page, etc...have you tried any of them so far?
to prevent the BACK button from causing trouble. You dont... you adjust accordingly.
Thanks,
CohenMarvin

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #2
Try going through this:-
http://www.4guysfromrolla.com/webtech/111500-1.shtml
Hope it helps
Patrick
"COHENMARVIN" <co*********@hotmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
I'm writing a database application in asp.net, and I'm worried that the
users will sometimes click the BACK button in their browser, thus
making some pages re-execute, and possibly messing up the databases.
How can this be prevented? Can I prevent prior pages from being cached
by the browser, so that the user has to click on REFRESH to see the
page again? If I can do that, I would force the prior page to
re-execute, and maybe that would be good because I could test for some
session variable that holds the most recent page seen. This might tell
the page whether it is being reached by the Back button or not. So
basically I have 2 questions, how to prevent browser caching, and how
to prevent the BACK button from causing trouble.
Thanks,
CohenMarvin

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: anonieko | last post by:
Scenario: You have a page that is TOO slow to refresh. But it allows partial flushing of html contents. I.e. Submit button already appears but you don't want your users to click on it prematurely...
8
by: Smartin | last post by:
I have a form in Access97 which facilitates a query against a production Access database. Users will enter some search terms and see a datasheet view of the results in a subform. The prod table is...
3
by: Rob | last post by:
Each time a webform is posted back (submitted), another URL is added to the browser's history list. My web application allows a back button to return to previously visited pages, but I do not wish...
9
by: Li Pang | last post by:
I use a combobox control to populate the data. I want to prevent to change data (freeze the data in the filed). The only solution I have is to set Enabled property to "False", but it gray out the...
8
by: Arno R | last post by:
Hi all, Is the above possible? I guess I need an API call for this ? How and where to find this? One of my new apps is used as a sort of 'dedicated' thing. Users see an empty desktop with...
2
by: Rob Roberts | last post by:
Is there any way to prevent a ButtonField in a GridView from doing a postback when clicked? I want to use my own onclick handler to call window.open('SomePage.aspx') to display a page in a new...
11
by: bill | last post by:
I dynamically create buttons and associate them with an event using AddHandler. I want all the button events to fire at one time, when the page is posted, instead of when each button is clicked....
5
by: freelancex | last post by:
Hi, Im new to this forum, and new to scripting in general. Im an ICT Technician for a high school and i am designing a Form in visual basic 2005. The intended purpose of the Form, is to prevent...
2
by: =?ISO-8859-1?B?UOVsIEEu?= | last post by:
Have a "standard" asp.net web solution which uses the standard asp.net authentication and authorization methods (forms authentication). Some users have raised concern that even if you logout...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.