Wednesday, October 19, 2011

Routing paramaters in MVC

In .NET MVC, you can access the routing parameters by using RouteData property of the ViewContext object similar to below.

ViewContext.RouteData.Values["id"]

No comments: