I am working on a code base which as VBScript code embedded in HTML. I’ve noticed the following two different tags around said lines of code
<%= MyFunc(val1) %>
and
<% MyFunc(val1) %>
What is the difference in using the “=” character at the beginning of these sections?
<%evaluates an expression in server code but doesn’t emit output.<%=also evaluates the expression but wraps the result in Response.Write, so it produces output.