Did Microsoft change the way to pass string as parameter in ASP.NET MVC 3? -


i have simple question. previously, when wanted call controller method 1 parameter, calling /controllername/method/parameter, whatever type parameter was. now, did same thing integer value without problems, string didn't work. going nuts or microsoft changed this?

the default route you'll find in global.aspx.cs still following:

routes.maproute(     "default",                                              // route name     "{controller}/{action}/{id}",                           // url parameters     new { controller = "home", action = "index", id = "" }  // parameter defaults ); 

so "parameter" {id} in example above, presumably number ids tend be. know routes, they're fun! linkage: http://www.asp.net/mvc/tutorials/asp-net-mvc-routing-overview-cs


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -