routing - ASP.NET MVC - Help defining route entry -


I want to create a path entry for a URL , which index string foo ) The action method of a controller named User

At the same time the default Home Controller should not be affected and should work normally

Any help is greatly appreciated

Thanks

You can try entering it before the default route:

  Routes.MapRoute ("FooRoute" "{Foo}", new {controller = "home", action = "index", foo = UrlParameter.Optional});  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -