.NET FAQs Unleashed!
 
    
    

What is the advantage of the Response.RedirectPermanent() method in ASP.NET 4.0?

When a web page has moved permanently, it is recommended to use the Response.RedirectPermanent method in ASP.NET 4.0.

Example (C#):

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

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

ASP.NET 4 when IIS is reset   Meta Tags using the Page Directives   Response.Redirect(), Response.RedirectPermanent(), Server.Transfer()   Shrinking Session State   Expanding size of allowable URL   Preventing XSS Attacks in ASP.NET 4   New features in ASP.NET 4.0   Features of ASP.NET 4.0 Chart Control   Advantage of Response.RedirectPermanent()   Benefit of Extensible Output Caching   URL Routing   Web.config Refactoring   Controlling IDs of Controls   Monitor Performance in ASP.NET 4.0