c# - How to save the checkboxes as Key-value pairs in asp.net webforms -
i have sql server table id, key , value columns , in front end have bunch of checkboxes. need save checkbox selections database. know process save when there separate column each checkbox in table, but, values saved key example: test , value: 1 if checkbox selected. have used checkbox control this:
<div class="form-group"> <div class="check"> <asp:checkbox runat="server" id="chkreviewsubmit" text="review/submit" /> <br /> <asp:checkbox runat="server" id="chkstatuschange" text="show status change options" /> <br /> </div> </div>
how save checkbox selections key value pairs? can please provide me examples.
Comments
Post a Comment