473,508 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Do not allow Users to go back to previous web page

I'm writing a .Net Web application. I'm trying to find out two things.

1) Once a user clicks a button that takes them to the next page, I don't
want them to be able go back to the previous page.

2) The only way I want them to be able to get to the 2nd and 3rd pages is
by going through the first page. I don't want them to be able to type the
URL of the 2nd page and go directly to it.

Any suggestions.
Sep 1 '05 #1
1 2317
Hi Brian, you can have your pages as user controls inside a container web
form page. You can either load them dynamically by placing the placeholder on
the container page or play around with the visible property of user controls.
You can keep track of the current page on a variable which can be persisted
on the viewstate or cache. In order to prevent the back button, try to set
the expiration of the page to 0.
Check out the issue tracker starter kit, which I think has a wizard.

"Brian" wrote:
I'm writing a .Net Web application. I'm trying to find out two things.

1) Once a user clicks a button that takes them to the next page, I don't
want them to be able go back to the previous page.

2) The only way I want them to be able to get to the 2nd and 3rd pages is
by going through the first page. I don't want them to be able to type the
URL of the 2nd page and go directly to it.

Any suggestions.

Sep 1 '05 #2

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

Similar topics

24
1695
by: Jim Hubbard | last post by:
Anybody know?
16
1582
by: Konrad Viltersten | last post by:
Suppose you got a really long page and you'd like to enable the user (supposedly, there's only one but if it's not to difficult we could extend that to any number) not to have to scroll to the...
8
2091
by: moondaddy | last post by:
Is there a way to make the browser move back to the previous page via code behind on the server? The effect would be the same as the user clicking on the browser's back button. Thanks. --...
2
3787
by: Leszek Taratuta | last post by:
Hello, I am using the following code to prevent users to see the previous pages: Response.CacheControl = "no-cache"; Response.AddHeader( "Pragma", "no-cache" ); Response.Expires = -1; When...
2
5331
by: wiewiek | last post by:
Is there a way to go back to the previous page when a button (Cancel button) is hot? It's an ASP control. Thanks
6
2536
by: Nad | last post by:
Hello, In order to go back to the previous page from a page with possible postbacks I keep Request.Referrer in ViewState and then use it to redirect to the previous page. However I am losing all...
1
393
by: Brian | last post by:
I'm writing a .Net Web application. I'm trying to find out two things. 1) Once a user clicks a button that takes them to the next page, I don't want them to be able go back to the previous page....
5
2258
by: cameron | last post by:
I am working on an assignment where I have to allow end-users to enter in data and to have C++ make a calculation. From there I have to set up a loop to allow users to go back and enter new data or...
3
1887
vijcbe
by: vijcbe | last post by:
Hello friends!! Hope someone will fix this issue for me.. I am making a web page in PHP, in which users will enter into their login and do manupulations. After they click logout, the go to the...
0
7231
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,...
1
7063
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5640
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
5059
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
3211
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
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
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 ...
0
432
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.