J
J055
Hi
When I use this:
<%= Html.CheckBoxFor(m => m.CopyAddress)%>
it produces html like:
<input checked="checked" id="CopyAddress"
name="CopyAddress" type="checkbox" value="true" /><input name="CopyAddress"
type="hidden" value="false" />
or
<input id="CopyAddress" name="CopyAddress"
type="checkbox" value="true" /><input name="CopyAddress" type="hidden"
value="false" />
which means the System.Web.Mvc.FormCollection for value CopyAddress are
either "false" or "true,false".
Can someone explain the logic and provide an example of how to use it to get
either a true or false value?
Thanks
Andrew
When I use this:
<%= Html.CheckBoxFor(m => m.CopyAddress)%>
it produces html like:
<input checked="checked" id="CopyAddress"
name="CopyAddress" type="checkbox" value="true" /><input name="CopyAddress"
type="hidden" value="false" />
or
<input id="CopyAddress" name="CopyAddress"
type="checkbox" value="true" /><input name="CopyAddress" type="hidden"
value="false" />
which means the System.Web.Mvc.FormCollection for value CopyAddress are
either "false" or "true,false".
Can someone explain the logic and provide an example of how to use it to get
either a true or false value?
Thanks
Andrew