Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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"];
     }
 }
Ejemplo n.º 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);
     }
 }