What is RedirectPermanent?

 Posted by Ddd on 3/22/2011 | Category: ASP.NET Interview questions | Views: 3404 | Points: 40

It is a method of the Response object and has been introduced in ASP.NET 4.0.

It redirects permanently to the target page and returns a code 301.

Response.Redirect, which performed temporary redirection to the target page and returned code 302.

This effect can be viewed in search engines.

We are in Default.aspx and use Response.Redirect("Default2.aspx");
Both pages exist:
If RedirectPermanent is used,Default.aspx will no longer exist

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Ram85 on: 5/19/2011 | Points: 10
Thanks for this. It helped me in fixing some small bug in my development.

Login to post response