ASP.NET: Add ASPX / View comments visible only in the code editor (not sent to the browser)

Is there a way to make a good comment on an ASPX page (actually ASP.NET MVC View - but this is the same, HTML content) without all of these comments sent to the client browser?

I like good comments, but I don't want to send all these lines to visitors' comments. Any way to prevent this (different comment tags or workarounds?)

Thanks!

+3
source share
1 answer
<%-- Server side comment --%>
+9
source

Source: https://habr.com/ru/post/1713616/


All Articles