0

I'm adding one new route to RouteCollection like this:

routes.Add(new Route("{*data}", new MyRoutehandler()));

How can I specify the controller name and action name inside this MyRouteHandler (my own route handler)?

1 Answer 1

2

Take a look here:

Sign up to request clarification or add additional context in comments.

2 Comments

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...
Try to implement custom ControllerFactory and set is as default in Application_Start

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.