コード例 #1
0
ファイル: MyUlTreeView.cs プロジェクト: wtf-boy/Framework
        protected override void OnPagePreLoad(object sender, EventArgs e)
        {
            base.OnPagePreLoad(sender, e);
            Page page = this.Page;

            if ((page != null) && !page.ClientScript.IsClientScriptIncludeRegistered(typeof(MyUlTreeView), "UlTreeView.js"))
            {
                string url = SysVariable.ApplicationPath + "/" + this.ThemePath + "/UlTreeView.js" + ControlVerHelper.GetVer("?");
                page.ClientScript.RegisterClientScriptInclude(typeof(MyUlTreeView), "UlTreeView.js", url);
            }
        }
コード例 #2
0
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     this.TextMode = TextBoxMode.MultiLine;
     if (this.IsAutoLoadJs && !this.Page.ClientScript.IsClientScriptIncludeRegistered(typeof(MyUeditor), "MyUeditor.js"))
     {
         string script = " window.UEDITOR_HOME_URL ='" + SysVariable.ApplicationPath + "/App_Control/Ueditor/';";
         this.Page.ClientScript.RegisterClientScriptBlock(base.GetType(), "UEDITOR_HOME_URL", script, true);
         string url  = SysVariable.ApplicationPath + "/App_Control/Ueditor/" + this.Ueditor + ControlVerHelper.GetVer("?");
         string str3 = SysVariable.ApplicationPath + "/App_Control/Ueditor/" + this.ConfigName + ControlVerHelper.GetVer("?");
         this.Page.ClientScript.RegisterClientScriptInclude("UeditorConfigPath", str3);
         this.Page.ClientScript.RegisterClientScriptInclude(typeof(MyUeditor), "MyUeditor.js", url);
     }
     if (this.Page.Request.Form[this.ClientID + "_ResourceID"] != null)
     {
         this.ResourceID = this.Page.Request.Form[this.ClientID + "_ResourceID"];
     }
 }
コード例 #3
0
ファイル: MyGridView.cs プロジェクト: wtf-boy/Framework
 protected override void OnPagePreLoad(object sender, EventArgs e)
 {
     base.OnPagePreLoad(sender, e);
     if (!this.Page.ClientScript.IsClientScriptIncludeRegistered(typeof(MyGridView), "MyGrid.js"))
     {
         string url = SysVariable.ApplicationPath + "/" + this.ThemePath + "/MyGrid.js" + ControlVerHelper.GetVer("?");
         this.Page.ClientScript.RegisterClientScriptInclude(typeof(MyGridView), "MyGrid.js", url);
     }
 }