protected void CheckBox2_CheckedChanged(object sender, EventArgs e)
{
if (CheckBox2.Checked == true)
{
textbox1.Enabled = true;
}
else
{
textbox1 = false;
}
}
textbox1的Enabled属性初始值设为false,为什么选中CheckBox2没有反应,textbox1也不能输入
{
if (CheckBox2.Checked == true)
{
textbox1.Enabled = true;
}
else
{
textbox1 = false;
}
}
textbox1的Enabled属性初始值设为false,为什么选中CheckBox2没有反应,textbox1也不能输入
此消息通过 【CSDN论坛 Winform测试版】 回复!
在checkbox的onClientCick中调用jsdocument.getElementByID("<%=textbox1.ClientID%>").style.display="none";