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
Post a Comment