orchardcms - How to enable a client validation (Orchard CMS)? -
orchardcms - How to enable a client validation (Orchard CMS)? -
i trying add together client validation user registration page in orchard cms.
server-side validation implemented next (working well):
if (string.isnullorempty(username)) { modelstate.addmodelerror("username", t("you must specify username.")); validate = false; } if (string.isnullorempty(email)) { modelstate.addmodelerror("email", t("you must specify email address.")); validate = false; }
i've added jquery related scripts view, enabled client validation in web.config:
<add key="clientvalidationenabled" value="true" /> <add key="unobtrusivejavascriptenabled" value="true" />
also added dataannotations userpart class properties , usercreateviewmodel class properties.
no luck.
so questions are:
does orchard cms back upwards mvc 3.0 client validation dataannotations? what should create validation working?
i think have implement them according brief scan of thread. http://orchard.codeplex.com/discussions/243523
orchardcms
Comments
Post a Comment