Friday 15 February 2013

asp.net mvc 5 - What URL does this route match? -



asp.net mvc 5 - What URL does this route match? -

“routes.maproute("static", "welcome", new { controller = "home", action = "index" });”

so mean go home/index? "welcome" in url?

first name of route, sec url , 3rd part default values.

please refer official documentation next time, instance tutorial: http://www.asp.net/mvc/tutorials/controllers-and-routing/creating-custom-routes-cs

this specific route apply url: {root}/welcome , {root} may www.mysite.com , utilize controller name home , activate action index.

asp.net-mvc-5

No comments:

Post a Comment