lundi 4 juillet 2016

How to save multiple checkbox values into a database using ASP.Net VB?

How to save multiple checkbox values into a database using ASP.Net VB?

<input  runat="server" ClientIDMode="static" type="checkbox" id="c1" name="cc" class="main-checkbox"/>
<label for="c1"><span></span>Perlengkapan dasar (Handuk, seprai, sabun, dan tisu toilet) </label><br/>

<input runat="server" ClientIDMode="static" type="checkbox" id="c2" name="cc" class="main-checkbox" />
<label for="c2"><span></span>Wifi </label><br/>

<input runat="server" ClientIDMode="static" type="checkbox" id="c3" name="cc" class="main-checkbox" />
<label for="c3"><span></span>Lemari/laci </label><br/>

<input runat="server" ClientIDMode="static" type="checkbox" id="c4" name="cc" class="main-checkbox" />
<label for="c4"><span></span>TV</label><br/>

<input runat="server" ClientIDMode="static" type="checkbox" id="c5" name="cc" class="main-checkbox" />
<label for="c5"><span></span>Pemanas</label><br/><input  runat="server" ClientIDMode="static" type="checkbox" id="c1" name="cc" class="main-checkbox"/>
<label for="c1"><span></span>Perlengkapan dasar (Handuk, seprai, sabun, dan tisu toilet) </label><br/>

<input runat="server" ClientIDMode="static" type="checkbox" id="c2" name="cc" class="main-checkbox" />
<label for="c2"><span></span>Wifi </label><br/>

<input runat="server" ClientIDMode="static" type="checkbox" id="c3" name="cc" class="main-checkbox" />
<label for="c3"><span></span>Lemari/laci </label><br/>

<input runat="server" ClientIDMode="static" type="checkbox" id="c4" name="cc" class="main-checkbox" />
<label for="c4"><span></span>TV</label><br/>

<input runat="server" ClientIDMode="static" type="checkbox" id="c5" name="cc" class="main-checkbox" />
<label for="c5"><span></span>Pemanas</label><br/>

enter image description here

If I selected several, can I save into database? Please give me direction in one field database




Aucun commentaire:

Enregistrer un commentaire