about checkbox
private sub submitbtn_click(.......)
dim checkvalue as string=""
if checkbox1.checked= true then
checkvalue="yes"
else if
checkbo2.checked=true then
checkvalue="no"
end if
dim strsql as string="insert into table (.....,check)values(........,'" & checkvalue & "')"
con.open()
dim cmd as sqlcommand(con,strsql)
cmd.executenonquery()
con.close()
end sub
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
regards
Anu



