Asp net MVC controllers and widgets
- by Josemalive
Hi,
I have some doubts about ASP.Net MVC, and i would like to ask few questions.
If i understood well, a controller/action is selected from a httprequest.
As one request is used to get one web page, could we call to these controllers "page controllers"?
My other question is about the widgets and RenderPartial method.
If a widget represent a classic asp.net webcontrol or usercontrol, and i want to render this widget in a lot of pages, how could avoid repeat the logic of the widget if this logic is in the "page controller"?
Any help would be appreciated.
Thanks in advance.
Best Regards.
Jose