日期:2014-05-18 浏览次数:20515 次
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<input type="button" value="dianji" onclick="javascript:gas();" />
<asp:UpdatePanel ID="UpdatePanel1"
runat="server">
<ContentTemplate>
<asp:Timer ID="myTimer" runat="server" Enabled="true" EnableViewState="true" OnTick="myTimer_Tick1" Interval="10" > </asp:Timer>
<asp:Timer ID="myTimer2" runat="server" Enabled="true" EnableViewState="true">
</asp:Timer>
<asp:TextBox runat="server" ID="txtasd"></asp:TextBox>
<asp:Button runat="server" ID="btnadd" OnClick="btnadd_Click1" Text="asdasdasd" />
</ContentTemplate>
</asp:UpdatePanel>
<script language="javascript">
function gas()
{
window.document.getElementById('<%=btnadd.ClientID %>').click();
}
</script>