I have 4 checkboxes. I want when I update the page the checkboxes is populating the values from database.
My code is
<div class="editor-field">
<%: Html.CheckBox("Any")%> Any
<%: Html.CheckBox("Contract")%> Contract
<%: Html.CheckBox("PartTime") %>Part Time
<%: Html.CheckBox("FullTime") %>Full Time
<%: Html.CheckBox("WorkFromHome") %>Work From Home
</div>
Help me from out this problem..
I found the solution to this problem.
I take Male and Female fields.
<%: Html.Label(“Gender”)%>
It retrieves the values correctly and when we want to select new one it shows the new checkbox.Hope you all others are useful.