Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Response.redirect vs Server.transfer


Message #1 by =?iso-8859-1?q?sky=20limit?= <skylimit7772002@y...> on Thu, 24 Oct 2002 13:33:57 +0100 (BST)
Hi Guys,

A little confusion over Response.redirect  vs Server.transfer.

If I use Response.redirect  ("somepage.asp") , --> "somepage.asp" works fine . I have a cascading style sheet and that
"somepage.asp" picks all the color combination which are defined in style sheet and also  "somepage.asp" has got some functionality
, I mean there are some buttons which take user to otherpages works fine .

Now

If I use Server.transfer (" somepage.asp"),--> "somepage.asp" wont picks the style sheet colors combination and more over those
buttons which are defined in "somepage.asp"  are not working , simple message ------> page can not be found.

The buttons which are defined in "somepage.asp" which takes me to some other .asp pages are actually submitted through javascript.

 

Can anybody help wot is going on??

regards

 




---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.

Message #2 by "Ken Schaefer" <ken@a...> on Fri, 25 Oct 2002 11:29:52 +1000
Response.Redirect() tells the browser that the page requested has moved to a
new location. The browser then issues a request for the second page
(somepage.asp)

Server.Transfer() is all server side. Effectively what happens is when ASP
gets to Server.Transfer() command, it takes all the code in "somepage.asp"
and pastes it onto the bottom of the current page, and processes the new
page.

None of which should have any effect (as far as I can tell) on your CSS
sheet. That is up to the browser. Now, if you getting "page not found", that
would seem to indicate that you haven't put the correct path into the
Server.Transfer() call, or something like that.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "sky limit" <skylimit7772002@y...>
Subject: [asp_web_howto] Response.redirect vs Server.transfer


:
: Hi Guys,
:
: A little confusion over Response.redirect  vs Server.transfer.
:
: If I use Response.redirect  ("somepage.asp") , --> "somepage.asp" works
fine . I have a cascading style sheet and that "somepage.asp" picks all the
color combination which are defined in style sheet and also  "somepage.asp"
has got some functionality , I mean there are some buttons which take user
to otherpages works fine .
:
: Now
:
: If I use Server.transfer (" somepage.asp"),--> "somepage.asp" wont picks
the style sheet colors combination and more over those buttons which are
defined in "somepage.asp"  are not working , simple message ------> page can
not be found.
:
: The buttons which are defined in "somepage.asp" which takes me to some
other .asp pages are actually submitted through javascript.
:
:
:
: Can anybody help wot is going on??
:
: regards
:


  Return to Index