Asp net MVC controllers and widgets
Posted
by Josemalive
on Stack Overflow
See other posts from Stack Overflow
or by Josemalive
Published on 2010-04-06T09:55:59Z
Indexed on
2010/04/06
10:13 UTC
Read the original article
Hit count: 655
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
© Stack Overflow or respective owner