Esempio n. 1
0
 protected override void OnInit(EventArgs e)
 {
     // This allows a developer to place JsonMethod attributes on
     // methods inside their code behind to an aspx page
     if (!tickling)
     {
         JavascriptServer.RegisterProvider(this, this);
         JavascriptServer.RegisterProvider(typeof(JsLogger), this);
     }
     base.OnInit(e);
 }
Esempio n. 2
0
        protected override void OnLoad(EventArgs e)
        {
            if (JavascriptServer.ProcessRequest(HttpContext.Current))
            {
                return;
            }

            //if (PixelServer.ProcessRequest(HttpContext.Current))
            //    return;
            AddProviderInfo();
            AddSessionTimeOut();
            base.OnLoad(e);
        }
Esempio n. 3
0
        //internal Control CreateResourceScriptControl(string scriptName)
        //{
        //    string actualScriptName = Resources.JavaScriptFriendlyNames[scriptName];
        //    return CreateResourceScriptControlFromQualifiedName(actualScriptName);
        //}

        internal Control CreateResourceScriptControlFromQualifiedName(string namespaceQualifiedScriptName)
        {
            HtmlGenericControl script = CreateScriptControl(JavascriptServer.GetResourceScriptPath(this.page.Request.Url, namespaceQualifiedScriptName));

            return(script);
        }
Esempio n. 4
0
 public void ProcessRequest(HttpContext context)
 {
     JavascriptServer.ProcessRequest(context);
 }