MVC3 client validation not working

前端 未结 3 1483
借酒劲吻你
借酒劲吻你 2021-01-05 11:39

I have a required annotation on my model:

[Required(ErrorMessage = \"Please choose an option\")]
public bool? AnyDebts { get; set; }

I have

3条回答
  •  天命终不由人
    2021-01-05 11:45

    For my case, it only happens when using IE in quirks mode, my settings are Browser Mode: IE9, Document Mode: Quirks. This results in client side validation not working for me. However, the same page works well in Firefox,Chrome, and IE9, Browser Mode: IE9, Document Mode: IE9 standards when using the developer toolbar. Not that its a solution, but a possible lead

提交回复
热议问题