Hello dear
i m in problem to use bool variable. when i approve a workorder by chacking chekboxb its true . how to use it.
if any body helpme best regurds.
Use bool variable
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Mar 26, 2013, 8:37 PM EDT
create a page which has a checkbox and a button on .aspx page
Student:<asp:CheckBox ID="chkStudent" runat="server" Checked="false" /><br />
<asp:Button ID="btnSubmit" runat="server" Text="Submit" onclick="btnSubmit_Click" />
protected void btnSubmit_Click(object sender, EventArgs e)
{
bool student = chkStudent.Checked ? true : false;
}
thereafter you can use student variable for fruther working.
Thanks
Sandeep Shekhawat