Why does ASP.NET MVC Html.CheckBox output two INPUTs with the same name?

后端 未结 7 805
不知归路
不知归路 2020-12-03 17:07

Why in the world does the line:

<%= Html.CheckBox(\"ForSale\", Model.Product.ForSale)%> For Sale

result in the following HTML:

<
相关标签:
7条回答
  • 2020-12-03 17:34

    try

    request.form["chkBoxes"].replace("false","").split(new char[] {','}, stringsplitoptions.removeemptyentries);

    0 讨论(0)
提交回复
热议问题