I want to disable the textbox when the checkbox is checked in a user control (ACSX page).
(我想在用户控件(ACSX页)中选中复选框时禁用文本框。)
These controls are in a gridview.(这些控件位于gridview中。)
<div>
<asp:GridView ID="gvModifOuvrageNonControles" runat="server" AutoGenerateColumns="false" SkinID="MarionGridView">
<Columns>
<asp:TemplateField HeaderText="NO CONTROL">
<ItemTemplate>
<asp:CheckBox ID="cbInspection" OnClick="grisé(this);" runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="RAISON">
<ItemTemplate>
<asp:TextBox ID="txtCause" runat="server"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
function grisé(obj) {
alert(obj.getAttribute('id'));
}
ask by user12456581 translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…