We have our POCO classes setup using Data Annotations. For one of these classes, we invole more than one view for the user to populate all of their data.For example if it were a class with username a
I am using Entity Framework + SQL Server DB and am using partial classes with DataAnnotations to validate data.For things like Required and Range, this works fine, but I am unable to get the DataType
I use the Html.EditorForModel() in a view to generate fields for the edit form. I also have another partial class where I specify some Data Annotation attributes for some fields (like DisplayName, Ran
I am using JavaScriptSerializer to serialize EF4 Entities, and getting circular reference while trying to serializing them to JSON.
I am trying to create a minimum length validation attribute which will force users to enter the specified minimum amount of characters into a textbox
I am using Entity Framework and generating my POCO classes via T4 - these classes inherit from nothing and are very plain and simple (created via template in vs 2010)
I have a form which posts 13 objects right now. Some of the objects can be optional, such as the Referrer, others can not be. The problem is that if I uses DAV and decorate the objects with validation
I am developing an ASP.NET MVC2 application in which I have a User class with a property named SecurityQuestionID as follows:
Related to this question I have created my own DateValidationAttibute to make sure a string is in a valid date format (e.g., MM/DD/YYYY)
I am trying to build a grid, using class info and its properties along with the supported dataannotion attributes.