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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -