在用户控件中document.getElementById( "Panel1 ").style.display= "none ";不起作用..........在.aspx中document.getElementById( "Panel1 ").style.display= "none ";能够起到隐藏的作用.
求大家帮忙.
------解决方案--------------------------------------------------------
document.getElementById( "Panel1 ").style.display= "none ";==> document.getElementById( " <%=Panel1.ClientID%> ").style.display= "none ";
------解决方案--------------------------------------------------------
document.getElementById( " <%=Panel1.ClientID%> ")