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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -