Address bar

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
 
K

Kevin Spencer

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.
 
J

Jeremy Ames

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
 
M

Matt Berther

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.
 
J

Juan T. Llibre [MVP]

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
===========
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top