asp.net mvc - MVC WCF Validation -


i want validate view don't know best way it

i want know if there option in service have

 [required(errormessage = "property required.")]  [datamember]    public string name { get; set; } 

and when pass view data want

@html.label("name") @html.editorfor(model => model.name @html.validationmessagefor(model => model.name) 

but can't find solution in net think answer no can tell me best solution validate ?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -