commenting out server side scripts like <%=BasePath%> is difficult with server side commenting using <% %>. Ofcourse, we can use the age old <!-- --> tags, but just wondering if there is a better way.you can use single quotes.
' this is a comment
hth
<tr>
<td></td>
<td><img src="http://pics.10026.com/?src=<%=BaseImagePath%>/gui/table_leftCorner.gif" width=9 border=0></td>
<td background="<%=BaseImagePath%>/gui/table_BgTile.gif" valign=top>
</tr>
I would like to comment out the entire code, if use <%-- --%>, i will get a problem at <%=BaseImagePath%>, I would not prefer <!-- --> because this part of the code is visible on user side with view source. I would like to know an elegant manner in which i can comment out. '(single quote), /* */ or // do not work since it is a .aspx or .ascx file.
sorry. when you said server-side comments i thgt u were talking abt commenting in asp.net. what you have is the only way to comment in html.
btw, what xactly are you trying to do. you can prbly try concatenating a string variable and see how it works out.
hth
0 comments:
Post a Comment