Re: server.transfer and URL address - confused

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Patrice Scribe (nobody_at_nowhere.com)
Date: 03/03/04


Date: Wed, 3 Mar 2004 13:13:54 +0100

The postback means the data in your form are submitted by the browser to a
page. This *is* a client side request and it updates then the URL.

If you need to let the user know he is on a new page, use Response.Redirect
(and its additional small hit)
If this is a processing only page use Server.Transfer.

Patrice

-- 
"Bob H" <bh15@le.ac.uk> a écrit dans le message de
news:c24f84$3rc$1@south.jnrs.ja.net...
> Thanks for the replies.
>
> I setup 4 blank pages with the same navigation:
> - Page1 to Page2 with response.redirect
> - Page2 to Page3 to Page4 with server.transfer
>
> Same thing happens. I had forgot about the postback to Page3 (hence the
URL
> change to Page3 when navigating to Page4)...although I had thought that
only
> client side could update the address bar (?).
>
> I suppose what I'm after is to be able to navigate to another page, pass
the
> variables (in a 'hidden' format) and have the URL bar updated (without the
> issues of querystring & sessions). Is it possible to server.transfer to an
> intermediate page (e.g. Page2.5), before redirecting to Page3 (with
> variables and URL bar intact)??...although doesn't this just pose the same
> problem of how to get variables from 2.5 to 3?
>
> cheers
>
> Bob
>
> > "Bob H" <bh15@le.ac.uk> a écrit dans le message de
> > news:c24bgk$2pl$1@south.jnrs.ja.net...
> > > Hi,
> > >
> > > I'm aware of the different ways to pass variables between ASP.Net
pages.
> > For
> > > pages that need to pass a variable, we're using the server.transfer
> > method.
> > > For others, we're using repsonse.redirect. My understanding was that
the
> > > server.transfer method doesn't update the URL address bar. However,
I've
> a
> > > situation that I'm a bit confused about and would appreciate any
advice
> on
> > > why the following is occuring (i.e. why I'm obviously missing
something
> in
> > > all this):
> > >
> > > 1) Move from Page1.aspx to Page2.aspx via a response.redirect. URL
> address
> > > bar changes to Page2.aspx.
> > > 2) Move from Page2.aspx to Page3.aspx via a server.transfer. URL
address
> > bar
> > > stays with Page2.aspx.
> > > 3) Move from Page3.aspx to Page4.aspx via a server.transfer. URL
address
> > bar
> > > changes to Page3.aspx.
> > >
> > > ..During the move in point 3, I would have thought that the URL
address
> > bar
> > > would stay with Page2.aspx. Is the above the correct behaviour, or is
> > there
> > > something amiss?
> > >
> > > Thanks for any advice on this.
> > >
> > > Cheers
> > >
> > > Bob
> > >
> > >
> >
>
>


Relevant Pages

  • Re: Publisher 2007 wont allow access to or addition of navigation
    ... If I try to add a nav bar using indert/navbar/existing I get "publisher ... I have managed to have three separate and unique navigation bars (both ... can build with the navbar wizard...I haven't tested for any limits. ...
    (microsoft.public.publisher.webdesign)
  • Re: Navigation bar not working for some
    ... David Bartosik - ... index_files/Page266.html when I hover over a hyperlink in the navigation. ... did do a copy of the navigation bar from another page and pasted it onto ... And will it contain the navigation hyperlinks? ...
    (microsoft.public.publisher.webdesign)
  • Re: Cant open a second page or link without a Fault causing FP to
    ... Are you adding a nav bar based on Navigation ... I can open multiple pages with no fault. ... However, as soon as I add a navigation bar to the shared borders, I'm ...
    (microsoft.public.frontpage.client)
  • Re: Navigation bar not working for some
    ... David Bartosik - ... did do a copy of the navigation bar from another page and pasted it ... And will it contain the navigation hyperlinks? ...
    (microsoft.public.publisher.webdesign)
  • Re: A roguelike programming contest
    ... a client to directly include headers needed only indirectly ... Bar _bar; ... Your proscription would force a module using Foo to write: ... Forward declarations /where possible/ help reduce compile ...
    (rec.games.roguelike.development)