ASP.NET MVC 3 - Validation Question

后端 未结 4 464
生来不讨喜
生来不讨喜 2020-12-19 10:09

Good evening everyone I have a question regarding validation of drop-down list values. I have a view that is bound to a view model type called ReservationData.

4条回答
  •  自闭症患者
    2020-12-19 10:44

    you should try to add data annotations on your view model properties first so you could see the validation messages.

    you might find what you need here

    http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.aspx

    or create custom ones if needed.

    what exactly do you need to validate?

提交回复
热议问题