Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Web
Expertise: Beginner
Aug 27, 1999



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Illegal to Include a Comment in an Output Expression in an ASP Environment

You cannot include a comment in an output expression while working with server side scripts. For example, the first line that follows will work, but the second line will not, because it begins with <%=. It is advisable to separate the comments if such a need arise:
<% x= x +1 'this increments x. This script will not fail. %>
<%= arReturnValue 'this prints the variable varReturnValue. This script will fail. %>

However, if you break the second line so that comment and the output expression is separated, then there is no error.
'This prints the variable varReturnValue. This script will not fail.
<%= varReturnValue %>

Jai Bardhan
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date