Esempio n. 1
0
        public CompiledPage ProcessPageFromString(string includePath, string pageString)
        {
            AspPageDom page = new AspPageDom();

            page.processPage(includePath, pageString);
            return(CompilePage(page));
        }
Esempio n. 2
0
        private CompiledPage CompilePage(AspPageDom page)
        {
            ScriptSource src          = _engine.CreateScriptSource(new VBScriptStringContentProvider(page.Code, page.Mapper), page.PagePath, SourceCodeKind.File);
            CompiledCode compiledCode = src.Compile();

            return(new CompiledPage(compiledCode, page.Literals));
        }
Esempio n. 3
0
        public CompiledPage ProcessPageFromFile(string pagePath)
        {
            AspPageDom page = new AspPageDom();

            page.processPage(pagePath);
            return(CompilePage(page));
        }