Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Re: Change visible URL without redirect


Message #1 by "Ken Schaefer" <ken@a...> on Tue, 1 Oct 2002 11:30:48 +1000
No,

There is no "easy" way to "change" the URL that is displayed whilst changing
the content.

You could use frames, in which case the URL of the "frame" is displayed
rather than the URLs of each page within the frameset, but:
a) there are some usability problems
b) it makes it hard to bookmark pages
c) it is a trivial matter to get the location of the actual page.

Think about it Ron, the browser needs to be able to get the resource (ie the
page or image), so it needs to know where it is, which means that the user
can find out where it is to. And hiding this (or being able to arbitrarily
change this) is a security problem.

That said, you can run other pages in the context of your default page
(without resorting to includes). Use Server.Transfer(), or Server.Execute()

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
----- Original Message -----
From: "Ron Phillips" <ronbo@t...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Monday, September 30, 2002 11:23 PM
Subject: [asp_web_howto] Change visible URL without redirect


: Hi,
: I am trying to keep users from seeing the individual page names on my
: site.  Whenever they navigate to, say,
: http://www.sitename.com/somepage.asp  I want re-set the address line in
: their browser to only show  http://www.sitename.com
: But I DON'T want the browser to then re-direct, just change the visible
URL
: .
:
: I suppose I could set a cookie with the page they are really going to, and
: in my opening page read the cookie and have an include for the actual page
: I want to send them too, but I have too many pages on the site to make
: this workable (the load time would be horrible, and the server would load
: up way too fast).
:
: There has to be an easy way (or some way) to change the URL that is
: displayed without actually sending them to that page.  Any ideas?
: TIA,
: Ron
:
: ---
:
: Improve your web design skills with these new books from Glasshaus.
:
: Usable Web Menus
: http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
: r-20
: Constructing Accessible Web Sites
: http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
: r-20
: Practical JavaScript for the Usable Web
: http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
: r-20


  Return to Index