I am starting to use ASP.NET MVC. And, as I see it, there are two approaches to transferring data for viewing:
What are the pros and cons of each?
, , , . , , , .
JOSH DOOLAN, - . , :
Public Class Person { String _name; String _age; Pet _pet; // gets & sets below..etc }
, , ( "" ), , Pet.
, , - , , "Pet". /, html-mvc- Html.ControlFor. , html, , :
Html.EditorFor(model => model.Pet, "Pet")
, "pet" "Pet", , , .
-.