I want to save value displayed with the checkboxes in database. By default it saves "true or false" value. I want to replace that "true or false" value with the displayed value on the side of checkboxes.
Hi ukd,
You are passing the checkbox Checked property to the insert query.
You have to pass the checkbox Text Property.
string chk1 = checkbox1.Text; string chk2 = checkbox2.Text; string chk3 = checkbox3.Text;
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.