This project is read-only.

Validation

Jun 20, 2011 at 3:37 PM

i want to apply the validation on the DNA controls by binding them to data model.

also if any have a pdf documentation about all controls and the properties i can use it please send me the link..

 

if i have a text box for property name 

   Ajax.Dna().TextBox("txt1").Value(Model.name)

.GetHtml()    

 

how can i add the validation to this textbox as i do before in MVC3

 @Html.TextBoxFor(model => model.name)

@Html.ValidationMessageFor(model=>model.name)