Beispiel #1
0
        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);
            }
        }
Beispiel #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"];
     }
 }
Beispiel #3
0
 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);
     }
 }