javascript客户端触发服务器后台事件:
注意javascript要写在后面,不然对象没加载完毕,会发出没找到对象的错误
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" UseSubmitBehavior="False" /></div>
</form>
</body>
</html>
<script>
__doPostBack('Button1','');
</script>