x First time here? Check out the FAQ
  • Avatar3posts24karma

    Razor macros - when they are compiled?

    woo123 started this topic August 29, 2011 @ 07:01 , this topic was edited at: Monday, September 12, 2011 6:20 PM

    Gusy sorry if that is something easy, but could someone tell me how razor scripts with business logic are compiled? It's before each pageload or only once at the aplication start?

    Thanks

    david


  • Replies

  • Avatar2908posts6287karma
    HQ Comment with ID: 89089
    Sebastiaan Janssen posted this reply September 12, 2011 @ 06:20

    They get "compiled at runtime (on demand)". As far as I understand it, individual files get compiled on a pageload (doesn't have to be the page with the Razor script on it), but they don't seem to cause a full application recycle. Not sure how to test that though, so I might be wrong.


Please login or Sign up To post replies