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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -