Iam just at the very basic level of entering a boolean value(yes/no) for the check box cheked value in to a database with field check...for this Iam using a string variable checkvalue and proceeding like this
private sub submitbtn_click(.......)
dim checkvalue as string=""
if checkbox1.checked= true then
dim strsql as string="insert into table (.....,check)values(........,'" & checkvalue & "')"
dim cmd as sqlcommand(con,strsql)
but this approach is showing me an syntax error at check which i couldn't find any error in my code...
is it the correct programming practice or any thing wrong with my code....plz suggest me the right way to store the checked value into the database
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!