Checkbox

J

JW

Hi

I am using a checkbox on a ASP form with a SQL database.

<Parameter Name="@Patch" Value='<%# IIf((Request.Form("Patch") <> Nothing),
Request.Form("Patch"), "") %>' Type="NChar" />
<td><asp:CheckBox ID="Patch" runat="server" Enabled="true" /></td>

I need the checkbox to return a value of 1 when checked and 0 when not
checked.
At the moment it returns on when checked and nothing when not checked.

Can anyone give me some pointers please.

Thanks
Jaco
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top