Showing posts with label parameters. Show all posts
Showing posts with label parameters. Show all posts

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"]