Copied to clipboard

Flag this post as spam?

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


  • Max Edwards 26 posts 50 karma points
    Oct 14, 2009 @ 22:10
    Max Edwards
    0

    Broken this site!

    It looks like my last post broke the site! perhaps it could do with some URL ecoding...

    This is what I had put:

    <%Response.Write("Hello world");%> VS <%="Hello world"%>

    Spotted a weird thing while putting some inline .net code into a template. Response.Write outputted to the top of the page whereas <%= outputted inline. Anyone know why this would be? I thought <&= was just shorthand for response.write.

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Oct 14, 2009 @ 23:19
    Morten Bock
    0

    Short answer: It's not.

    <%= is meant to be used inline for dynamic output.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies