boolean variable

  • Thread starter Thread starter Daniel Groh
  • Start date Start date
D

Daniel Groh

Hi,
I have a checkbox and i would like to know if is possible to insert in
SQLServer true or false or if i need to check in C#... if(true...var=1...
???
How to insert a value from a checkbox in my database ?
 
Daniel said:
Hi,
I have a checkbox and i would like to know if is possible to insert in
SQLServer true or false or if i need to check in C#... if(true...var=1...
???
How to insert a value from a checkbox in my database ?
Another SQL Server question.
Please direct your question to any one of the numerous SQL server groups.

In relation to the C# part of the question, the .Checked property will
tell you whether the checkbox is checked or not.

Thank you

John
 
for inserting Checkbox's value in sqlserver you can use its checked property
it will return you boolen; now you can convert this value in Int and also
sotred in Sqlserver or you can directly sotred into SqlServer.

Thanks
Ritesh
 
Back
Top