I'd like to know the performance related differences between
Response.Redirect and Server.Transfer.
I'd like to redirect the user to a different page.
I can either do a Response.Redirect("URL") or a Server.Transfer("URL").
So I'd like to find out which is more efficient/better.
Can anyone please tell me or give any pointers to links on the web?
Thanks & Regards
Harsh Thakur
--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Developer for Hire
"Harsh Thakur" <har...@cybage.com> wrote in message
news:urPevIVZ...@tk2msftngp13.phx.gbl...
Thanks for your response.
Now I feel much better about using Server.Transfer.
I have one more query though.
What happens to the Page object which invoked the Server.Transfer?
Lets say PageOne called Server.Transfer("PageTwo").
I know PageOne stays alive for a while longer.
When is it destroyed? Is it GC'd just like any other object?
I'd like to know this because it might mean extra memory load for the
server.
Actually, instead of using query strings, we expose a Get method on PageOne
and then call that method in the Page_Load of PageTwo.
Regards
Harsh Thakur
"Steve C. Orr, MCSD" <St...@Orr.net> wrote in message
news:euTqpZVZ...@TK2MSFTNGP09.phx.gbl...
--
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Neither a follower nor a lender be.
"Harsh Thakur" <har...@cybage.com> wrote in message
news:%23$eeE4VZD...@TK2MSFTNGP09.phx.gbl...
Thanks for your reply.
Regards
Harsh Thakur
"Kevin Spencer" <ke...@takempis.com> wrote in message
news:e9#U8gYZD...@tk2msftngp13.phx.gbl...