How to write a comment in a MVC view, that won't be transmitted to the final HTML (i.e.,to browser, to response). One can make a comment with:
<!--<a href="/">My comment</a> -->
but, it is visible in the page source code in browser.
Is it possible to leave comments in '.cshtml' files only for internal use?
This question is related to
c#
asp.net-mvc-3
razor
comments
This comment syntax should work for you:
@* enter comments here *@
Source: Stackoverflow.com