---------------------------------------------------------------------------------------------------
*前台页面中函数的定义与调用*
<script language="C#" runat="server">
public void DeleteDB(Object sender, System.EventArgs e)//必须是Object sender, System.EventArgs e这两个参数
{...
}
</script>
在控件的事件中加入方法名
例如:<button OnServerClick="DeleteDB" runat="server">
---------------------------------------------------------------------------------------------------