<asp:checkbox />
<asp:CheckBox runat="server" id="myCheckBox"/> <asp:Button runat="server" value="Submit" id="btnSubmit" OnClick="btnSubmit_Click"/>
protected void btnSubmit_Click(object sender, EventArgs e) { var checkboxValue = myCheckBox.Checked; // gives boolean value. true/false }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)