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

后端 未结 7 803
不知归路
不知归路 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条回答
提交回复
热议问题