Posted on: 10/7/2015 1:52:26 PM | Views : 965

i am using the microsoft friendly url to rewrite friendly urls and parameters for my site
i have a "user" page, that has the username passed to the page and is displayed as: mysite.com/User/username
i have mapped this in the Route.Config file 
public static void RegisterRoutes(RouteCollection routes) { var settings = new FriendlyUrlSettings(); settings.AutoRedirectMode = RedirectMode.Permanent; routes.EnableFriendlyUrls(settings); routes.MapPageRoute("", "", "~/default.aspx"); routes.MapPageRoute("LoginError", "LoginError/", "~/userauthentication.aspx"); routes.MapPageRoute("Account", "Account/{username}","~/Account.aspx"); routes.MapPageRoute("User", "User/{username}", "~/User.aspx"); } ...

Go to the complete details ...