Hello Experts,

How can i save the optionbutton and checkbox value in sql database?
please send the query:
dim cmd as new sqlcommand("insert into [tablename] values(........)",c.con)
please help me :)

Recommended Answers

The checkbox.checked (=True or False) is a pretty good way.

"insert into table (field1) values ('" & checkbox.checked.tostring & "')"
Jump to Post

All 3 Replies

The checkbox.checked (=True or False) is a pretty good way.

"insert into table (field1) values ('" & checkbox.checked.tostring & "')"

The checkbox.checked (=True or False) is a pretty good way.

"insert into table (field1) values ('" & checkbox.checked.tostring & "')"

thankyou so much:sweat:

You are welcome. If this has solved your problem, please mark this thread as closed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.