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