I am very confused in the presentation, and the corresponding controller must be installed in the MVC 1.0 project structure. Currently, in the default application, we have the About.aspx page under the home folder, and all controller actions are processed in the HomeController. This controller mixes the Home action and About action. It makes things dirty. I like to have a clear separation of my controller. As is the case with one controller and HomeCotroller. To do this, I created another "About Me" folder in the browse folder and placed Aboput.aspx in it, otherwise we will get an error below. How can i achieve this? I like to have the exact folder structure, both in the view, just like in Cotroller.
The view 'About' or its master could not be found. The following locations were searched: ~/Views/About/About.aspx ~/Views/About/About.ascx ~/Views/Shared/About.aspx ~/Views/Shared/About.ascx Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: The view 'About' or its master could not be found. The following locations were searched: ~/Views/About/About.aspx ~/Views/About/About.ascx ~/Views/Shared/About.aspx ~/Views/Shared/About.ascx
I like folders like \ iew \ About.aspx and Cotroller \ AboutController.cs or \ View \ Info \ About.aspx and \ Controller \ Info \ AboutController.cs.
This will make my project and code very clean and easy to maintain. Thanks in advance for your help.
asp.net-mvc routing
Jit
source share