asp.net mvc 2 - How can I get action name? -


I changed the ASP.Net controller factor by a Windsor Controller Factor.

And I registered all the controllers and interceptors so far everything is working well.

Now when I'm debugging my interceptor, invocation. The controlbase in Method.No name requires me to get the name and parameter of the action to take some assumptions.

How do I get action names and action parameters in the interceptor mode of my interceptor? The information about the controlbiz_execute method and its parameters does not help me.

Thanks,

Rafael Malosem

I believe That you can get from the RequestContext.RouteData collection. I think the key "action" for the method / action is something like this:

  requestContext.RouteData.Values ​​["action"]  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -