//如果有UpdatePanel就用如下代码调用前台js
// ScriptManager.RegisterStartupScript(UpdatePanel1, this.Page.GetType(), "", "Ceshi();", true);
//如果没有就如下代码
this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "", "Ceshi();", true);
转载于:https://www.cnblogs.com/LD1018/p/8144306.html