mvc3 validate input 'not-equal-to'

后端 未结 6 1498
滥情空心
滥情空心 2020-12-13 21:33

My forms have inputs with default helper text that guides the user on what to enter (rather than using labels). This makes validation tricky because the input value is never

6条回答
  •  时光说笑
    2020-12-13 21:57

    The ideal solutions is a custom Attribute where you specify minimum and maximum lengths as well as MustNotContain="Please enter your name...".

提交回复
热议问题