aspx.cs调用js方法

       //如果有UpdatePanel就用如下代码调用前台js
            // ScriptManager.RegisterStartupScript(UpdatePanel1, this.Page.GetType(), "", "Ceshi();", true);
            //如果没有就如下代码
            this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "", "Ceshi();", true);

posted on 2017-12-29 14:23  New_q  阅读(440)  评论(0编辑  收藏  举报

导航