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
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