views:

51

answers:

1

Im adding one new route to RouteCollection like this routes.Add(new Route("{*data}", new MyRoutehandler()));

now how to specify the controller name and action name inside this MyRouteHandler( my own route handler )

+2  A: 

Take a look here:

Koistya Navin
In all cases we are able to change the controller dynamically.But I want to change both controller name as well as Action name..please give me some guidence...
vecsuresh
Try to implement custom ControllerFactory and set is as default in Application_Start
Koistya Navin