Wednesday, 15 September 2010

c# - MVC Forms - Toggle Model Validation -



c# - MVC Forms - Toggle Model Validation -

i have mvc form allows user add together details "service" related account. problem can save , resume form whenever want don't need check required properties until take "publish" service.

my problem not sure how implement validation. i've looked here think need utilize same view because @ stage in form can take either "save , resume later" or "save , publish"(validation needed on click).

i thought maybe using model without required attributes until point "save , publish" button clicked , on click casting/converting info model no validation model validation , checking validity not sure if right way go?

any help/pointers appreciated.

liam

c# asp.net-mvc validation

No comments:

Post a Comment