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.
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.
Short answer: It's not.
<%= is meant to be used inline for dynamic output.
is working on a reply...