I have custom validation attribute such as this: public class MyCustomAttribute : ValidationAttribute {
This is the problem that we\'re facing in .NET MVC 2. We\'re trying to use DataAnnotations to take care of the Model Validation for us, like it\'s supposed to. The only problem that we\'re having is
If one of the fields in the Model is bound to a EditorTemplate, will the javascript unobtrusive data-val-* parameters be generated for the EditorTemplate if the field in the Model is decorated with va
I am using Entity Framework 4.0, RIA Services, and Silverlight 4.0.I need the user to be able to save any changes regardless if they are correct or incomplete.To do this I had to make a lot of fields
I need to be able to validate some controls and I\'m not sure how is the best way to do this.Some of the validation should be all the time like verifying string length on certain properties. This seem
How can i make this work like I have 5 fields in my database table . I created a model for validation with datannotations and created the compare password field as well with comparepassword attribu
Given the following object, public class Question { [Required] public string QuestionText { get; set; } [Range(1, 5)]
I would like to be able to use the MVC validation + my custom javascript validation. The MVC validation is really nice for Model Validation. The main problem here, is that I have more complexe validat
I am working on WPF application which uses Entity Framework alongwith POCO classes. I would like to use data annotations with POCO classes for Client side validations in UI (WPF). Since, 开发者_运维百
Validating a form with Data Annotations using MVC. Are you to define all properties of an input object parameter as string with data annotations so one can check the model state to catch errors, or s