views:

16

answers:

2

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.

+1  A: 

You could implement your own controller factory, see here, and do whatever you like with the controller before you return it.

Paul Creasey
+2  A: 

Does this help http://msdn.microsoft.com/en-us/library/system.web.mvc.actionfilterattribute.onactionexecuting.aspx ?

byte
thanks dude i m thankful
Xulfee