I'm trying to run an insert into statement into a SQL database and everything updates except when i include the radiobuttonlist in the insert statement. If i take it out, it works. I am getting a system.nullreferenceexception which i *think* means that it cannot insert a null into that field?? I know the SQL side accepts nulls for this field too. If either "Yes" or "No" are selected, the insert works fine, only when NEITHER is selected.
I am using the standard "INSERT INTO table (field1...)
VALUES @field1...."& radiobutton.selecteditem.text &" I've also tried radiobutton.selecteditem.value and that didn't work either...
So, i guess my question is...if there is NOTHING checked for the 2 items in my radiobuttonlist, why am i getting a nullreference error?? Anyone know how to resolve this?
Thanks again!
dc~
I am using the standard "INSERT INTO table (field1...)
VALUES @field1...."& radiobutton.selecteditem.text &" I've also tried radiobutton.selecteditem.value and that didn't work either...
So, i guess my question is...if there is NOTHING checked for the 2 items in my radiobuttonlist, why am i getting a nullreference error?? Anyone know how to resolve this?
Thanks again!
dc~