If this is my view model: public class ViewModel{ public string SimpleProperty{get;set;} public SubViewModel ComplexProperty{ get;set;}
I have the following problem. I\'m using a structure (not a single table) to display my edit page. When Im submitting my page, (an ascx page), after having filled all the fields, I fill some ModelS
I need some help doing something I am assuming is simple. I am using ASP.net MVC 3 with CodeFirst (CTP5)
I\'ve this controller\'s method for create [HttpPost] public ActionResult Create(Topic topic) { if (ModelState.IsValid)
I have the following two action methods (simplified for question): [HttpGet] public ActionResult Create(string uniqueUri)
We have a need within some of our logic to iterate through the properties of a model to auto-bind properties and want to extend the functionality to include the new dataannotations in C# 4.0.
Here\'s part of a controller action: [HttpPost] public ActionResult NewComplaint(Complaint complaint) { if(!ModelState.IsValid)
I have a custom exception class: public class MyException: Exception { public MyException(MyExceptionEnum myError) : base(myError.ToDescription()) { }
I\'m working on a really big order form with a bunch of multi-part data that\'s submitted all at once. I\'m using that trick where you render 30-40 item rows in the HTML and allow the user to \"show\"
I am rather new to mvc2 and when following a writeup on data annotations and such, I came across a bit of code that let me manually 开发者_运维知识库add a line of text to the validation summary.