Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alec Griffiths 129 posts 151 karma points
    Oct 04, 2009 @ 22:23
    Alec Griffiths
    0

    Macros executed even when commented out?


    Am I correct in that macros in templates are executed even if commented out and no result is returned??
    I am creating an xslt extension and comment out previous tests however when remote debugging with visual studio it appears that each commented out macro is processed? I had noticed the page loading slower and slower, if correct there should be a warning or something it seems very inefficient.

    Alec

  • Peter Gregory 408 posts 1614 karma points MVP 3x admin c-trib
    Oct 04, 2009 @ 23:25
    Peter Gregory
    0

    How are you commmenting them out?  If you are only using HTML comments <!-- --> then they will still be executed.

    However if you use .net commneting <%-- --%> they will not be executed.

    Peter

  • Alec Griffiths 129 posts 151 karma points
    Oct 04, 2009 @ 23:45
    Alec Griffiths
    0

    Thanks Peter. You learn something new every day.

Please Sign in or register to post replies

Write your reply to:

Draft