I have a checkbox in my aspx page. Inside the checkbox i have a Div which lists some student name from Database. I have a condition to check if my there are no students to list in DB. I need to make the checkbox as ReadOnly or disabled.
<table id="tblNewStud" runat="server" cellpadding="4" cellspacing="2">
<tr>
<td><label for="checkBoxSudent"> <input type="checkbox" id="checkBoxSudent" />
Select Student Name</label>
</td>
</tr>
</table>
<div id="listStudent" style="display: none">
<table id="addStudents" runat="server" style="margin-left: 15px; margin-top: 5px; margin-bottom: 5px" border-top="2">
<tr>
<td class="selectName">
<asp:CheckBoxList ID="chkSelecStud" runat="server" CssClass="myCheckBoxList">
</asp:CheckBoxList>
</td>
</tr>
</table>
</div>
Aucun commentaire:
Enregistrer un commentaire