How to save check box values to database?

15 pts.
Tags:
CheckBox
CheckBox values
Database programming
how to save the value from check boxes to the database?

Answer Wiki

Thanks. We'll let you know when a new response is added.

What language are you using? This will depend on how you do this.

Basically you will set the value of the stored procedure parameter or column (depending if you are using a stored procedure or a dynamic SQL statement) to the .value of the drop down menu.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    Please update this with more information. How to do that depends on the programming language. I would also be useful to know what database are you using.
    70,200 pointsBadges:
    report
  • Aliya
    i use vb.net and sql2005... im new in this...
    15 pointsBadges:
    report
  • carlosdl
    In VB, check boxes have the 'checked' property, which is a boolean value. It could be used like this:
    If CheckBox1.Checked = True Then
         nValue = 1
    else
         nValue = 0
    end if
    
    Then you can perform the insert statement with that value of nValue.
    70,200 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following