views:

310

answers:

1

If I want to directly access the RouteData (the current action or parameter values for example) from the View, rather than having to pass it in from the controller as part of the ViewData, what class would i use?

+2  A: 
this.ViewContext.RouteData

should do the trick.

womp
That did the trick. Thanks!
Gene