Changing the default search mode
I am working with ASP.NET MVC 2. I have a bunch of partial views that I create based on different conditions inside the same controller. I would not want to put physical partial view files in a controller with other views.
I know that when I want a ViewResult using the View () or PartialView () methods, the default view engine will look in a folder in the view directory associated with the controller (i.e. if my controller is named Register it will look in the folder "Register" in the "Views" section), as well as in the shared folder.
Is there a way to change this behavior, or perhaps say specifically where to look for the view - heck, even give it a specific file to render? Is it possible? Maybe even a subfolder under the shared folder will work ...
a source to share