I want to call other method or other technique before action call in asp.net mvc 2.
Because I want to set property in variable then to call action in controller.
can any one guide me if possible.
I want to call other method or other technique before action call in asp.net mvc 2.
Because I want to set property in variable then to call action in controller.
can any one guide me if possible.
You could implement your own controller factory, see here, and do whatever you like with the controller before you return it.
Does this help http://msdn.microsoft.com/en-us/library/system.web.mvc.actionfilterattribute.onactionexecuting.aspx ?