473,388 Members | 1,198 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

boolean variable

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 ?
Nov 17 '05 #1
2 1891
Daniel Groh wrote:
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
Nov 17 '05 #2
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

"John B" wrote:
Daniel Groh wrote:
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

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rhio Barnhart | last post by:
I am a MySQL/PHP beginner and have gotten further than I expected. I am developing a web based library catalog. After getting everything configured, I have been working on various query formats. ...
5
by: Matt | last post by:
I have a simple JS function that I want to return a true or false value based on the parameter passed in. At this point of time I receive the error "'True' is undefined". Here is my code below. ...
1
by: Alex Moskalyuk | last post by:
In the GUI application I am writing I have some checkboxes for various settings. The code right now has internal boolean variables and the events that are fired off on checkBox_CheckedChanged for...
6
by: Tim::.. | last post by:
Can someone tell me why the value of my Boolean is always false! Even after I have declared that my variable iNews should equal TRUE it seems to remain false... Can some please explain why... ...
11
by: Darren Anderson | last post by:
I have a function that I've tried using in an if then statement and I've found that no matter how much reworking I do with the code, the expected result is incorrect. the code: If Not...
2
by: BobAchgill | last post by:
I tried to use either a CheckBox or Radio Button to set a Boolean variable but I get Cast error message with either when I try to use the Boolean in an IF statement. How can I use the Check box...
5
by: Rob Meade | last post by:
Hi all, Quick question if I may... I have a function which depending on whether it was succesful to do something or not returns True or False as a boolean. I have another function which...
1
by: shiniskumar | last post by:
how to check if the value of a boolean variable is true of false in ftl? ive got a boolean variable whose value is false i have to perform some action based on its value in front end how do i...
2
by: =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?= | last post by:
Hello guys, I was wondering if it was possible to reference a boolean predicate in a variable. Basically I want to do with the boolean predicate what you would do with any other variable; I want...
3
by: cj2 | last post by:
In the code below I want when this web service is first published for the boolean Running.running to be True. It seems to default to false. How can I make this default to True? Once the web...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.