Thursday, October 19, 2006

ASP.NET comment syntax, sever-side and client-side

<%-- content to comment --%>

@ Server-side comments allow developers to embed code comments in any part of an ASP.NET application file (except for within script code blocks).

@ Any content between opening and closing tags of server-side comment elements, whether ASP.NET code or literal text, will not be processed on the server or rendered to the resulting page.

@ A compilation error will occur if you use server-side comment blocks within <% %>blocks.

@ Server-side comment blocks cannot be nested.