Difference between Response.redirectpermanent and server.transfer
-
Hi all, can any one tell me what is the difference between Response.Redirect permanent and server.Transfer. In google i tried out but i found difference between Response.Redirect permanent and Response.Redirect but not with server.Transfer.
fttyhtrhyfytrytrysetyetytesystryrty
-
Hi all, can any one tell me what is the difference between Response.Redirect permanent and server.Transfer. In google i tried out but i found difference between Response.Redirect permanent and Response.Redirect but not with server.Transfer.
fttyhtrhyfytrytrysetyetytesystryrty
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
Hi friend, i am asking difference between Response.redirectpermanent and server.transfer not Response.redirect and server.transfer
fttyhtrhyfytrytrysetyetytesystryrty
-
Hi friend, i am asking difference between Response.redirectpermanent and server.transfer not Response.redirect and server.transfer
fttyhtrhyfytrytrysetyetytesystryrty
Well, Response.RedirectPermanent performs same redirect as Response.Redirect() but it uses response code 301 instead of 302. A 301 HTTP status code is a standard code in an HTTP response. It indicates that a permanent redirect exists, and it provides the redirect location.
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Hi all, can any one tell me what is the difference between Response.Redirect permanent and server.Transfer. In google i tried out but i found difference between Response.Redirect permanent and Response.Redirect but not with server.Transfer.
fttyhtrhyfytrytrysetyetytesystryrty
Response.RedirectParmanent
is an extension function introduced in .NET 4.0. The main motive of it is to indicate the Response Code to the Search Engine that the page is moved permanently. TheResponse.Redirect
generates Response code as 302 whereasRedirectParmanent
returns 301. Thus say you have a page, and which is included to search engine for a long time, if you useResponse.Redirect()
it will not change this effect to the search engine(taking this a temporary change), while if you useResponse.RedirectParmanent()
it will take it as permanent. In case ofServer.Transfer()
the actual response is actually been updated. There is no effect to the search engine, and search engine will think the output is coming from the same page that is called upon. Let us give an example : Say you have 2 pages (Page 1 and Page 2) where Page1 redirects to Page2 In case of 1.Response.Redirect()
: Search Engine will take this redirection as Temporary(Status 301) and always keep Page1 in its cache. 2.Response.RedirectParmanent()
: Search Engine will take this a permanent redirection(Status 302) and will remove Page1 from its database and include Page2 for better performance on search. 3.Server.Transfer()
: Search Engine will be unaware of any redirection been took place (Status 200) and will keep Page1 to its database. It will think Page1 is producing the output response of Page2. When to use:Response.Redirect
is perfect when your page is temporarily changed and will be changed to original within a short span of time.Response.RedirectParmanent()
when you are thinking of deleting the Page1 totally after the search engines changes its cache.Server.Transfer()
when you are thinking of keeping the page for ever, and to let search engine unaware of this redirection.Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
Response.RedirectParmanent
is an extension function introduced in .NET 4.0. The main motive of it is to indicate the Response Code to the Search Engine that the page is moved permanently. TheResponse.Redirect
generates Response code as 302 whereasRedirectParmanent
returns 301. Thus say you have a page, and which is included to search engine for a long time, if you useResponse.Redirect()
it will not change this effect to the search engine(taking this a temporary change), while if you useResponse.RedirectParmanent()
it will take it as permanent. In case ofServer.Transfer()
the actual response is actually been updated. There is no effect to the search engine, and search engine will think the output is coming from the same page that is called upon. Let us give an example : Say you have 2 pages (Page 1 and Page 2) where Page1 redirects to Page2 In case of 1.Response.Redirect()
: Search Engine will take this redirection as Temporary(Status 301) and always keep Page1 in its cache. 2.Response.RedirectParmanent()
: Search Engine will take this a permanent redirection(Status 302) and will remove Page1 from its database and include Page2 for better performance on search. 3.Server.Transfer()
: Search Engine will be unaware of any redirection been took place (Status 200) and will keep Page1 to its database. It will think Page1 is producing the output response of Page2. When to use:Response.Redirect
is perfect when your page is temporarily changed and will be changed to original within a short span of time.Response.RedirectParmanent()
when you are thinking of deleting the Page1 totally after the search engines changes its cache.Server.Transfer()
when you are thinking of keeping the page for ever, and to let search engine unaware of this redirection.Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
nice one. :thumbsup:
Viral My Site Tips & Tracks
-
Response.RedirectParmanent
is an extension function introduced in .NET 4.0. The main motive of it is to indicate the Response Code to the Search Engine that the page is moved permanently. TheResponse.Redirect
generates Response code as 302 whereasRedirectParmanent
returns 301. Thus say you have a page, and which is included to search engine for a long time, if you useResponse.Redirect()
it will not change this effect to the search engine(taking this a temporary change), while if you useResponse.RedirectParmanent()
it will take it as permanent. In case ofServer.Transfer()
the actual response is actually been updated. There is no effect to the search engine, and search engine will think the output is coming from the same page that is called upon. Let us give an example : Say you have 2 pages (Page 1 and Page 2) where Page1 redirects to Page2 In case of 1.Response.Redirect()
: Search Engine will take this redirection as Temporary(Status 301) and always keep Page1 in its cache. 2.Response.RedirectParmanent()
: Search Engine will take this a permanent redirection(Status 302) and will remove Page1 from its database and include Page2 for better performance on search. 3.Server.Transfer()
: Search Engine will be unaware of any redirection been took place (Status 200) and will keep Page1 to its database. It will think Page1 is producing the output response of Page2. When to use:Response.Redirect
is perfect when your page is temporarily changed and will be changed to original within a short span of time.Response.RedirectParmanent()
when you are thinking of deleting the Page1 totally after the search engines changes its cache.Server.Transfer()
when you are thinking of keeping the page for ever, and to let search engine unaware of this redirection.Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
Good Explanation Abhishek !:thumbsup:
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Good Explanation Abhishek !:thumbsup:
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
Hi abhishek,it is so clear for me. thank you so much my friend.
fttyhtrhyfytrytrysetyetytesystryrty
-
Hi abhishek,it is so clear for me. thank you so much my friend.
fttyhtrhyfytrytrysetyetytesystryrty
I am not abhishek :), Anyway, Abhishek will read the message ;)
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Hi abhishek,it is so clear for me. thank you so much my friend.
fttyhtrhyfytrytrysetyetytesystryrty
Thank you so much for your appreciation. Cheers. :thumbsup:
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
Hi all, can any one tell me what is the difference between Response.Redirect permanent and server.Transfer. In google i tried out but i found difference between Response.Redirect permanent and Response.Redirect but not with server.Transfer.
fttyhtrhyfytrytrysetyetytesystryrty
See how it works in ASPNEt4 http://himabinduvejella.blogspot.com/2010/01/aspnet-40-working-with-redirect.html You don't need to compare it with Server.Transfer. If you understand the feature. It's SEO feature
Iblog "If you can dream IT, you can become IT"