日期:2014-05-17 浏览次数:20722 次
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Text="111" Value="111"></asp:ListItem>
</asp:DropDownList>
<%@ Register Src="~/WebUserControl1.ascx" TagName="ssss" TagPrefix="guwei4037" %>
<div>
<guwei4037:ssss ID="sss" runat="server" />
<button onclick="return ttt()">清空</button>
</div>
<script>
function ttt() {
var ctl = document.getElementById("<%=sss.FindControl("DropDownList1").ClientID%>");
ctl.value = "";
return false;
}
</script>