locked
How can I precompile inline code in ASPX pages? RRS feed

  • Question

  • How can I precompile inline code in ASPX pages?

    We are using ASP.NET 2.0 Web Application to precompile the code behind files to DLLs in the bin folder, and even running Ngen.exe on the compiled DLLs. However, we still have a delay the first time a page is loaded if the page has any inline code in the .aspx page (Ex: <label><%=DateTime.Now%>)</label>). We can see in Task Manager that the CSharp compiler is being run the first time the page is loaded.

    How can we precompile this inline code so there is no compilation delay the first time a page is loaded? Is it possible?

     - Harlow.
    Friday, November 21, 2008 9:25 PM

Answers

  •  

    Hello Harlow, 

     

    Thank you for your post!  I would suggest posting your question in one of the Home ›

    ASP.NET Forums

     located here:  http://forums.asp.net/.

    Have a great day!


    Sudarshan shindode Tier 2 Application Support Server and Tools Online Engineering Live Services Team
    • Proposed as answer by sudarshans1 Monday, November 24, 2008 8:39 AM
    • Marked as answer by sudarshans1 Wednesday, March 25, 2009 12:39 PM
    Monday, November 24, 2008 8:39 AM