Tuesday, February 22, 2011

What Is The Difference Between Server.Transfer And Response.Redirect

Following are the major difference between them :-

1. Response.Redirect sends a message to the browser saying it to move to some different page, while Server.Transfer does not send message to the browser but rather redirects the user directly from the server itself. So in Server.Transfer there is no round trip while Response.Redirect has a round trip and hence puts a load on server.

2. Using Server.Transfer you can't redirect to a different from the server itself ie within website. The cross server redirect is possible only using Response.Redirect.

3. With Server.Transfer you can preserve your information.It has a parameter called as "preserveForm". So the existing query string etc. will be able in the calling page. In Response.Redirect you can maintain the state, but has lot of drawbacks.

If you are navigating within the same website use "Server.Transfer" or else go for "Response.Redirect"

Thanks..

13 comments:

Dev said...

very useful information thanks

Anonymous said...

Appreciating the persistence you put into your blog and in depth
information you offer. It's good to come across a blog every once in a while that isn't the same old rehashed information.
Fantastic read! I've bookmarked your site and I'm including your RSS feeds
to my Google account.

my web site - click the up coming web page

Anonymous said...

I've been browsing online more than 3 hours today, but I never discovered any attention-grabbing article like yours. It is lovely price enough for me. In my opinion, if all web owners and bloggers made just right content as you probably did, the net will be a lot more useful than ever before.

My homepage; Enduros Male Enhancement Free Trial

Anonymous said...

Some bodies have a high burn rate of calories, which prevents them from accumulating
fat. During your resistance training workouts, you should
practice fascial stretching. Not only can an elliptical build muscle, but
it will also help you burn calories and fat.

Have a look at my webpage - Power Pump XL Muscle Building

Anonymous said...

An outstanding share! I have just forwarded this onto
a colleague who has been doing a little research on this.
And he actually ordered me lunch simply because I stumbled upon it for him.
.. lol. So allow me to reword this.... Thanks for the meal!
! But yeah, thanks for spending the time to discuss this topic here on your blog.


Here is my webpage ... How Can I lose weight

Anonymous said...

Good blog you have got here.. It's difficult to find high quality writing like yours these days. I truly appreciate individuals like you! Take care!!

Also visit my blog garcinia cambogia

Anonymous said...

This blog was... how do you say it? Relevant!! Finally I've found something that helped me. Thank you!

Also visit my page: Natural Colon Cleanse

Anonymous said...

Right now it seems like Expression Engine is
the best blogging platform out there right now.
(from what I've read) Is that what you are using on your blog?

Visit my weblog ... Acai Ultra Lean Diet

Anonymous said...

Hello there! I know this is somewhat off
topic but I was wondering which blog platform are you using for this website?
I'm getting fed up of Wordpress because I've had
problems with hackers and I'm looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.

Check out my website: Buy Xtrasize

Anonymous said...

I'm more than happy to uncover this website. I want to to thank you for your time for this fantastic read!! I definitely liked every bit of it and I have you book marked to look at new stuff on your blog.

weight loss supplement

Anonymous said...

Pretty! This has been an extremely wonderful post.
Thank you for supplying this info.

Here is my web-site ... Garcinia Cambogia Trim Reviews

Anonymous said...

What's up everyone, it's my first pay a visit at this site, and paragraph is in fact fruitful in support of me, keep up posting such articles.


Also visit my blog post; Auravie Review

Anonymous said...

Its like you read my mind! You appear to know so much about this, like you wrote the book in it or something.
I think that you can do with some pics to drive the message home
a bit, but instead of that, this is great blog. A fantastic read.
I'll certainly be back.

Here is my web-site ... Satiereal saffron extract