Create an inline ASP tag that allows comments in the markup to be suppressed when the page is rendered
Create a special tag that can be used to add comments throughout HTML markup but that are stripped out when the page is processed. Example: <%’ This is a sample of a HTML comment that would be stripped out before the page is rendered.%> This would allow detailed comments to be added to the markup for special situations, but prevent those comments from being sent to the client.
Mohamed Meligy commented
This already exists <%-- Comment Here --%> in ASPX syntax, and @* Comment Here *@ in Razor syntax