加载js代码

    public void RegisterScripts()
        {
          
            string filePath = "~/ClientScript/skmValidators.js";
            this.Page.ClientScript.RegisterClientScriptInclude(GetType(), GetType().ToString(), this.Page.ResolveUrl(filePath));
        }

        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            RegisterScripts();

       }

  相关:http://www.cnblogs.com/wenjie/p/3199818.html

posted on 2016-05-03 12:21  蓝蓝的天2016  阅读(138)  评论(0编辑  收藏  举报