public static void InitBrowserComponent(Object sender)
        {
            string webPage = null;
            string strFileExt = null;
            string[] strExtList;
            webPage = (string)sender;

            if (webPage == null)
            {
                return;
            }

            if (m_host == null)
            {
                m_host = (MyHost)ApplicationHost.CreateApplicationHost(
                                                           typeof(MyHost),
                                                           "/",
                                                           Environment.CurrentDirectory);
            }
            strExtList = webPage.Split('.');
            if (strExtList != null)
            {
                strFileExt = strExtList[strExtList.Length - 1];
            }

            if (strFileExt != null && strFileExt.ToUpper().Equals("ASPX"))
            {
                string query = System.Environment.GetEnvironmentVariable("QUERY_STRING");
                m_host.CreateHtmlPage(webPage, query);
            }
        }
Exemple #2
0
        public static void InitBrowserComponent(Object sender)
        {
            string webPage    = null;
            string strFileExt = null;

            string[] strExtList;
            webPage = (string)sender;

            if (webPage == null)
            {
                return;
            }

            if (m_host == null)
            {
                m_host = (MyHost)ApplicationHost.CreateApplicationHost(
                    typeof(MyHost),
                    "/",
                    Environment.CurrentDirectory);
            }
            strExtList = webPage.Split('.');
            if (strExtList != null)
            {
                strFileExt = strExtList[strExtList.Length - 1];
            }

            if (strFileExt != null && strFileExt.ToUpper().Equals("ASPX"))
            {
                string query = System.Environment.GetEnvironmentVariable("QUERY_STRING");
                m_host.CreateHtmlPage(webPage, query);
            }
        }