Address bar

  • Thread starter Thread starter Jeremy Ames
  • Start date Start date
J

Jeremy Ames

I have an application that I am working on. Currently, I have several pages
that are linked together using a Session.Transfer(PageName, true) command. I
am able to make it to the next page correctly, but the address bar does not
update to show the next page consistantly. I think that this might be
causing problems transferring hidden form values, and I think that this
might have something to do with it. Someone please help me.

--

Thanks,

Jeremy Ames
Code Powered Technologies
 
If you use Server.Transfer, the address bar will not show the URL of the
page you transferred to, as the browser doesn't know anything about it.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Then how does the system keep up with the HTTP_REFERER and other variables
that are passed in the Request object?
--

Thanks,

Jeremy Ames
Code Powered Technologies
 
Hello Jeremy,

They are still a part of the original request. When you use Server.Transfer,
you're transferring that request to another handler to process.
 
By the use of Server.Transfer's
second parameter : "preserveForm".

If you set this to True, using a statement such as
Server.Transfer("someother.aspx", True),
the existing query string and any form variables
will still be available to the page you are transferring to.

There's an associated Viewstate Server.Transfer bug.
See http://support.microsoft.com/default.aspx?scid=kb;en-us;316920

HTTP_REFERER will not be available, though.
The browser doesn't know the page changed.



Juan T. Llibre
===========
 
Back
Top