zoukankan      html  css  js  c++  java
  • mvc4

    C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\fc9714c8\c7904cf1
    App_Web_vpfydiqo.dll

    System.Web.WebPages.Razor.RazorBuildProvider    CodeCompilerType



    C:\mvc3\mvc3-rtm-sources\mvc3-rtm-sources\mvc3\src\SystemWebMvc\Mvc\ViewResultBase.cs
                TextWriter writer = context.HttpContext.Response.Output;
                ViewContext viewContext = new ViewContext(context, View, ViewData, TempData, writer);
                View.Render(viewContext, writer);



    C:\mvc3\mvc3-rtm-sources\mvc3-rtm-sources\webpages\src\System.Web.WebPages\StartPage.cs
      public override void ExecutePageHierarchy() {
                // Push the current pagestart on the stack.
                TemplateStack.Push(Context, this);
                try {
                    // Execute the developer-written code of the InitPage
                    Execute();

                    // If the child page wasn't explicitly run by the developer of the InitPage, then run it now.
                    // The child page is either the next InitPage, or the final WebPage.
                    if (!RunPageCalled) {
                        RunPage();
                    }



    C:\mvc3\mvc3-rtm-sources\mvc3-rtm-sources\webpages\src\System.Web.WebPages\WebPageBase.cs
     public void PopContext() {
                string renderedContent = _tempWriter.ToString();
                OutputStack.Pop();



    C:\mvc3\mvc3-rtm-sources\mvc3-rtm-sources\mvc3\src\SystemWebMvc\Mvc\Html\PartialExtensions.cs
    public static MvcHtmlString Partial(this HtmlHelper htmlHelper, string partialViewName, object model, ViewDataDictionary viewData) {
                using (StringWriter writer = new StringWriter(CultureInfo.CurrentCulture)) {
                    htmlHelper.RenderPartialInternal(partialViewName, viewData, model, writer, ViewEngines.Engines);
                    return MvcHtmlString.Create(writer.ToString());
                }
            }




    -----------------------
    C:\mvc3\mvc3-rtm-sources\mvc3-rtm-sources\webpages\src\System.Web.WebPages.Razor\RazorBuildProvider.cs
    private void EnsureGeneratedCode() {
                if (_generatedCode == null) {
                    RazorTemplateEngine engine = new RazorTemplateEngine(Host);
                    GeneratorResults results = null;
                    using (TextReader reader = InternalOpenReader()) {
                        results = engine.GenerateCode(reader, className: null, rootNamespace: null, sourceFileName: Host.PhysicalPath);
                    }
                    if (!results.Success) {
                        throw CreateExceptionFromParserError(results.ParserErrors.Last(), VirtualPath);
                    }
                    _generatedCode = results.GeneratedCode;

                    // Run the code gen complete event
                    OnCodeGenerationCompleted(_generatedCode);
                }













  • 相关阅读:
    Java初试
    could not insert new action connection could not find any information for the class named
    GIT 从入门到放弃大整理
    'XCTest/XCTest.h' file not found
    The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
    后台数据为空因此程序闪退
    UISearchController Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior
    AFNetworking request failed unacceptable content type text/html
    Xcode找不到模拟器
    如何查看设备的 UDID
  • 原文地址:https://www.cnblogs.com/zyip/p/2689083.html
Copyright © 2011-2022 走看看