ASP.NET 4.0 Feature - Response.RedirectToRoute and Response.RedirectToRoutePermanent methods

Let us see the new feature in ASP.NET 4.0 known as the “Response.RedirectToRoute” and “Response.RedirectToRoutePermanent” methods. These helps to redirect to a specified url temporary or on permanent basis using the URL Routing mechanism.

The Syntax is as follows

Response.RedirectToRoute("View Titles by Author", new { TitleAuID = "172-32-1176" });

Response.RedirectToRoutePermanent("View Titles by Author", new { TitleAuID = "172-32-1176" });

Hope this was cool feature. Please add your comments or suggestions.

Cheers!!!

Comments

Popular posts from this blog

Jesus - God Thinks of you.

ASP.NET 4.0 Feature - URL Routing

Tips on JQuery Intellisense in VS 2008