ASP.NET MVC Html.RadioButton Exception

后端 未结 5 1518
梦毁少年i
梦毁少年i 2021-02-19 01:23

I haver a simple radio button list on my page that I render with the following in my view:


<%=         


        
5条回答
  •  名媛妹妹
    2021-02-19 02:01

    If you want to wire in client-side validation. Skip the html helper and hand-write your radios, giving them attributes for data-val and data-val-required. Like this.

     
        
    

提交回复
热议问题