I need some assistance with a check box question.
I have two check boxes on a page:
<asp:CheckBox ID="ChkYes" runat="server" Text="Yes" /
Is the database a boolean value? If so that Y or N is not what you would see
in a database. Booleans typically use bits, 1 for True, 0 for False. Saves a
lot of space in the database. Not sure what you mean about selecting both
options on the other page.
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
>I need some assistance with a check box question.
>
[quoted text clipped - 28 lines]
>
> Thanks in advance
JJ297 - 09 Aug 2007 15:35 GMT
> Is the database a boolean value? If so that Y or N is not what you would see
> in a database. Booleans typically use bits, 1 for True, 0 for False. Saves a
[quoted text clipped - 39 lines]
>
> - Show quoted text -
Thanks Mark,
In the database I have it listed as Char. I changed it and now it's
working properly.
On the design page I can select the both boxes yes and no and they
both will go into the database with Y and N answers how do I make the
user select one check box at a time?
Ross Culver - 09 Aug 2007 20:37 GMT
Put code in your codebehind page checkbox1.checkedchanged event that changes
one checkbox based on the checked value of the other.
Ross
>> Is the database a boolean value? If so that Y or N is not what you would
>> see
[quoted text clipped - 50 lines]
> both will go into the database with Y and N answers how do I make the
> user select one check box at a time?