0

I'm new in asp.net MVC, this is my situation. I have a controller called CustomerController. I created a subfolder to my Views/Customer folder. I want to manage views in this subfolder from my controller.

I think the right solution is the answer from Dale Ragan here.

But I don't have a ControllerFactory, I want to add the custom ViewLocator to my CustomerController if possible.

How can I manage this?

Community
  • 1
  • 1
opaera
  • 1

1 Answers1

0

the solution from weelink would work, juste add it to the Application_Start

Community
  • 1
  • 1
moi_meme
  • 9,180
  • 4
  • 44
  • 63
  • It seems like that solution is applied to all controllers. I would use the Dale Ragan solution, just on a single controller if possible. – opaera Apr 27 '11 at 19:51