link:
http://localhost:xxxxx/dailysummaries/index/6
is there property of request
or else pull '6' off of url , put variable, , not whole url such using absolutepath, etc?
update:
routes.maproute( name: "default", url: "{controller}/{action}/{id}", defaults: new { controller = "xxxxxx", action = "index", id = urlparameter.optional }
the value matched part of routedata
.
normally, if you're using asp.net mvc or webapi, controller can call routedata.values["id"]
value.
Comments
Post a Comment