我现在想做这样的一个效果。
当鼠标移入Textbox1时,让Panel1的visible属性变为True
但是vs里的textbox默认事件为:TextBox1_TextChanged
我想有个类似HTML中的input元素的onfoucs那样的事件,请问各位大侠有这样的事件吗?
当鼠标移入Textbox1时,让Panel1的visible属性变为True
但是vs里的textbox默认事件为:TextBox1_TextChanged
我想有个类似HTML中的input元素的onfoucs那样的事件,请问各位大侠有这样的事件吗?
panel只是一个Div
用javascript onfocus="document.getElmentById("panel1").style.display=none"
javascript onfocus="document.getElmentById("<%=panel1.ClientID%>").style.display=none";
{
TextBox1.Attributes.Add("onfoucs", "document.getElmentById('Panel1').style.display=none");
}我看这样的代码,如果运行后,应该在HTML文档里,有个标签的id是'Panel1'才对吧?
但是现在没有,Panel1应该是服务器端控件吧?