问题
I am very confused and scratching my head. I am trying to implement a complex page with many partial Views and Nested ViewModels, but somehow i am not able complete because of my limited understanding of technology. Please help me in understanding the below topics from asp.NET MVC 2 by providing good article/tutorials
1. Partial Views
2. Nested ViewModel
3. Custom ViewModel Binders.
I would really appreciate your help as right now i am trying to implement them without proper understanding and getting confused Note: I can't buy the book as its not available at my remote place.
Note: Still waiting for the reponse Thanks in advance.
回答1:
If you need to get a good understanding of any technology you really should buy a book. A book give you a much better understanding of the technology than reading blog posts. Blog posts tend to highlight a particular feature or problem without giving you the big picture.
However, since you asked for it, if you need authoritive info on MVC read the blogs of the (ex-)Microsoft guys involved in building it, for example :
- Brad Wilson
- Phil Haacked
- Jon Galloway
- Scott Guthrie
There's also a bunch of info op on asp.net/mvc.
I personally recommend the following books :
- Professional ASP.NET MVC 3 (Wrox), this book will educate you on all the topics you mentioned.
- ASP.NET MVC 3 in action (Manning), there's a MVC2 edition as well.
Both books are available as downloads from the publisher at reasonable rates, so you can start reading right away.
Finally I would recommend an upgrade to MVC3 if possible, it'll make your life easier.
来源:https://stackoverflow.com/questions/8576990/asp-net-mvc-2-0-articles-for-viewmodel-and-partial-view-edit-templates-validat