Requesting input of this MVC Widget approach

I realize this question is a little subjective, but it seems that best practices are still being developed for ASP.Net MVC.

I went looking for examples of how to implement sub / partial views with their own controllers so that I can create standalone widgets and I came across this article.

http://blog.codeville.net/2008/10/14/partial-requests-in-aspnet-mvc/

This works, but I'm curious if someone with more experience with a similar view can see some of the hurdles I've encountered with this approach.

0


a source to share


1 answer


Typically, your main view model should contain the model data needed to relay to the slice. If necessary, use a composite model or pass additional data through ViewData.



0


a source







All Articles