viewmodel
How to validate ViewModels derived from an abstract class?
I have the following EditorTemplate @model ESG.Web.Models.FileInfo // <-- Changed to BaseFileInfo @{[详细]
2023-03-23 18:33 分类:问答ViewModel vs ValueConverter for compound bindings
I\'ve been using MVVM (or my own flavour thereof) for some time now, but there\'s still one aspect of it which I would like clarified.[详细]
2023-03-23 15:35 分类:问答Polymorphism and Strongly-typed Views in ASP.NET MVC
I have a problem where I have two forms that are identical except that the required fields are different.For example, let\'s say the forms have the same fields: X, Y, and Z.In Form #1, X is required,[详细]
2023-03-23 15:21 分类:问答Binding Up Nested UserComponent To it ViewModel
I have a WFP Project and i am using MVVM Pattern. I have AddressView User control which i used in CustomerView UserControl.[详细]
2023-03-23 13:47 分类:问答How should posted data be modeled in MVC?
I think I get the idea of the ViewModel in MVC but, when doing updates and deletes, it seems like there should be a distinct model for posting to the controller. I noticed the default razor controll开[详细]
2023-03-23 10:57 分类:问答How to define ASP.NET MVC view model for parent/child relationship and its view (*.cshtml)
I have a domain model below: publicclass Book { public List<Author> Authors = new List<Author>();[详细]
2023-03-23 10:37 分类:问答Is there a native way to create Client-Side models to Post to my controllers without handrolling them?
I\'m fairly new to \"real world\" MVC / .NET development (i\'ve been studying MVC since MVC 1, and i\'ve spent the last 10 years web based so i\'m not really a noober either) I\'m hoping there\'s some[详细]
2023-03-22 14:20 分类:问答MVC3 C# ViewModel on Postback for saving
I have this certain viewmodel with viewmodels and collections. When I click save button that invokes postback, I can\'t get the viewmodels and collections inside the viewmodel. I need to declare 开发者[详细]
2023-03-22 12:16 分类:问答MS MVC3 Nested EditorFor and View Templates with same ViewModel
I have a hierarchy of开发者_运维技巧 Models I need to render out editors for. I want to have a nice ViewModel that contains all the info needed for each part of the hierarchy to render itself and hav[详细]
2023-03-22 03:06 分类:问答MVC 3 - Repopulate ViewModel properties with collections in Action, when ModelState is not valid
I have a ViewModel with several properties containing Collections for populating the DropDowns in form. In get Action, these properties are filled, and then view is properly rendered.[详细]
2023-03-21 20:29 分类:问答