@Html.LabelFor(model => model.LandCertificate,"Land Certificate")
@Html.CheckBoxFor(model => model.LandCertificate)
@Html.ValidationMessageFor(model => model.LandCertificate)
This is my view.I need to set default value for that checkbox. how to do this one?..I have a value for checkbox in my controller that value i need to set.
Anupam SinghPosted May 3, 2014, 9:54 AM
check box only have true or false,
or even wen you submit your form without selecting checkbox it will not set any value of it(neither true nor false),
if you want to set default value u have to bind your model in controller action.