Explain about Response.RedirectPermanent() method in ASP.NET 4.0 ?

 Posted by Bharathi Cherukuri on 8/29/2012 | Category: ASP.NET Interview questions | Views: 2614 | Points: 40
Answer:

The Response.RedirectPermanent() method in ASP.NET 4.0 is used when an application is moved permenantly.
Below is an example which explains this method clearly.

Example:

RedirectPermanent("/newpath/foroldcontent.aspx");


The advantage of this method is that, the search engines will remove old page from its cache/database and will take this permanent redirection (Status 301). And also includes new page for better performance on search.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response