model-binding
List<BaseType> Model Binding with Type descriptor
Given the following derived types: public class Base { public string Id {get;set;} } public class Contact : Base {[详细]
2023-04-03 18:52 分类:问答Model Binding using different names in html markup and models
In an asp.net MVC 1.0 application I have the following action public ActionResult Submit(ContactModel model)[详细]
2023-04-03 14:29 分类:问答model binding url encoded string mvc 3
I am using MVC 3 model binding in combination with JQuery serializer() to edit some data in a form. All is working well except when I have some \'url-encoded\' (don\'t know a better term) text in my d[详细]
2023-04-02 08:23 分类:问答ASP.NET validation of model's nested properties
I\'m trying to validate a model containing other 开发者_开发知识库objects with validation rules using the TryUpdateModel:[详细]
2023-04-01 23:26 分类:问答ASP.NET MVC 3 keep posted form data in form when there are binding errors
When a user posts a form to register, if ModelState is not va开发者_开发百科lid, I would like to have the input form values placed back into the appropriate form fields so they do not have to fill out[详细]
2023-03-31 00:41 分类:问答How to test ModelBinders in ASP.Net Mvc 3
I\'m trying to write some tests for a custom modelbinder and my god is this turning out difficult to stub. None of the stuff I\'m finding online relates directly to ASP.Net Mvc 3 or tends to have very[详细]
2023-03-28 10:42 分类:问答Modelbinding brakes on after adding html5 attributes
I have a view and it uses TextBoxFor helper method to edit model. Like this: <div class=\"editor-field\">[详细]
2023-03-28 02:48 分类:问答How can I change the list index of TemplateInfo.HtmlFieldPrefix?
How can I change the index of HtmlFieldPrefix? I\'m getting Children[0] from EditorFor() and I want to make it Children[@Model.Id][详细]
2023-03-27 19:56 分类:问答Fluent Validation and Collection Validation Issues in MVC 3
I\'m hoping I\'m missing something simple here. I\'ve configured Fluent Validation for integration with MVC and it\'s been working quite well up until now. I\'m now working on a scenario where a user[详细]
2023-03-26 10:29 分类:问答DefaultModelBinder and collections of complex types [duplicate]
This question already has answers here: Calling UpdateModel with a collection of complex data types reset all non-bound values?[详细]
2023-03-26 08:05 分类:问答