如何用BUTTON控件控制DROPDOWNLIST是否可见?? 都是服务器控件,如何在点了BUUTTON以后,DROPDOWNLIST从页面消失,再点一次BUTTON,DROPDOWNLIST又呈现出来??要求页面不刷新,,用JS实现 .怎么做? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script language="javascript"><!-- function AA() { var tmp = document.getElementById("DropDownList1");//DropDownList1为DropDownList ID号码 if(tmp.style.display == "none") { tmp.style.display = "block"; } else { tmp.style.display = "none"; } }</script><asp:Button id="UpFile" style="Z-INDEX: 101; LEFT: 408px; POSITION: absolute; TOP: 216px" runat="server" Text="test" onclick="AA();"></asp:Button> 或 <input type="button" value="test" name="bttons" onclick="AA();"> <script language="javascript"><!--function showdrop(){if(document.all.DropDownList1.style.display=="none"){document.all.DropDownList1.style.display="inline";}else{document.all.DropDownList1.style.display="none";}}//--> </script> sql 求教各位大虾。。。。帮忙来教教小弟 请问一个session的问题 像素和比例的问题 怎么使Combox的item有Checkbox的Check的属性,也可以像Checkbox一样选择。 帮忙分析下这段下载代码 来讨论一下 数据库连接的问题 看看有什么最好最优的办法 讨论有分 公司的項目,沒搞出來,求大家幫忙 问一个OWC中的Spreadsheet的问题,因为有多页,所以希望在打印时能固定表头,这怎么弄呢. 各位大峡进来帮帮忙阿! 一个问题,急~~~~在线等。。。 关于创建项目的问题!
<!--
function AA()
{
var tmp = document.getElementById("DropDownList1");//DropDownList1为DropDownList ID号码
if(tmp.style.display == "none")
{
tmp.style.display = "block";
}
else
{
tmp.style.display = "none";
}
}
</script><asp:Button id="UpFile" style="Z-INDEX: 101; LEFT: 408px; POSITION: absolute; TOP: 216px" runat="server" Text="test" onclick="AA();"></asp:Button>
或
<input type="button" value="test" name="bttons" onclick="AA();">
<!--
function showdrop()
{
if(document.all.DropDownList1.style.display=="none")
{
document.all.DropDownList1.style.display="inline";
}
else
{
document.all.DropDownList1.style.display="none";
}}
//-->
</script>