473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Stopping people opening a page

Hi There,

I am writing an ASP .NET 2.0 web site.

Just wondering how I can stop people accessing a certain page when they
shouldn't.

For example I have 2 pages,

test1.aspx
test2.aspx

I want there to be a link on page 'test1' which will take the user to
'test2', but if you type 'test2.aspx' in the browser pane, or hit the
back button it shouldn't let the user view tha page 'test2' page.

Basically the user will be filling out a form on each page, and the
information would be incomplete or inconsistant if they went to the
wrong page at the wrong time.

Thanks,

Peter.

Apr 24 '06 #1
2 1027
Look at the wizard control and its activestep index
http://quickstart.developerfusion.co...rd/wizard.aspx

--
Regards

John Timney
Microsoft MVP

"BobLaughland" <pe*************@gmail.com> wrote in message
news:11*********************@t31g2000cwb.googlegro ups.com...
Hi There,

I am writing an ASP .NET 2.0 web site.

Just wondering how I can stop people accessing a certain page when they
shouldn't.

For example I have 2 pages,

test1.aspx
test2.aspx

I want there to be a link on page 'test1' which will take the user to
'test2', but if you type 'test2.aspx' in the browser pane, or hit the
back button it shouldn't let the user view tha page 'test2' page.

Basically the user will be filling out a form on each page, and the
information would be incomplete or inconsistant if they went to the
wrong page at the wrong time.

Thanks,

Peter.

Apr 24 '06 #2
Fantastic, didn't think about using that. It will make it look and run
very nicely I think.

Thanks again!!!

Apr 25 '06 #3

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

Similar topics

7
by: python | last post by:
I have a script that downloads some webpages.The problem is that, sometimes, after I download few pages the script hangs( stops). (But sometimes it finishes in an excellent way ( to the end) and...
4
by: RelaxoRy | last post by:
Is there any way to stop someone getting their mouse and selecting text on a page (without making the text an image of course). Is it possible to trap and stop click-and-drag functionality from...
14
by: Mark | last post by:
Hi, At the top of my php file I have got :- <body onblur="self.focus();"> so when I click off onto another window, my window comes back up in front which is perfect. The problem however, is...
4
by: foldface | last post by:
Hi If you place a class in the top of a aspx.cs file that isn't the main class then the designer doesn't work. Good. I want to stop the designer from being able to work so that it can't accidently...
6
by: Darrel | last post by:
Ugh. I just spent an hour banging my head due to VS.net deciding to rewrite my code. I have this: <% if something %> <object> <% else %> <object> <% end if %> <param /> </object>
5
by: Eric Dan | last post by:
If I would like to stop an ASP.NET application after some initialization error during the "Application_Start" event (which I have caught within a catch clause) – what is the right way to do it?...
6
by: Andrew Poulos | last post by:
I'm using Windows Media Audio, via a WAX file, and I have some custom controls to start and stop the audio. While it works in IE, FF gives an error. The HTML looks like this: <object id='obj'...
11
by: emailus | last post by:
I am webmaster for the domain <www.alpha1.org.au>. Not being an expert in html, I take advantage of my domain Registrant's web building tool, 'Instant Website'. This tool is provided as part of...
4
by: Jeff | last post by:
Hi, I'd like to write Javascript that stops animated gifs from animating. On Firefox, at least, window.stop(); does the trick, although it stops everything on the page and is kind of...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
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
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,...

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.