Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
510
Does your editors support Asp.Net MVC validation framework?
posted

As you know, Asp.Net MVC 3 provides a server/client side unified validation framework.

For example :

you can write attribute [Required] on a model's property.

      [Required]
      public int Price { get; set; }

Then render the field by Html.EditorFor().

MVC will write the "data-val-required" information into the Input element, so that JQuery validation can unobtrusively validate the field.

My question is:

I want to set an validation attribute on my model, then render the model using Infragistic's Html helpers, Can I get the client-side validation automatically(by MVC's way)?

Another question is: Can I write my own validation logic for Infragistics control.

Parents
No Data
Reply Children