views:

115

answers:

1

Is the route table available from the filters?

I'm inheriting from the AuthorizeAtrribute class. All I'd like to do is examine the route table, and then just call the base class (after making some minor setup adjustments). I could look at the raw url, but I'd rather get the value I need from the route table. Any ideas?

+3  A: 

Figured it out. Turns out you can instantiate an instance of System.Web.Routing.RouteTable by passing in and HttpContext.

Esteban Araya
Good to know thanks!
Chuck Conway