Si necesitas comentar algún código mientras estás utilizando ASP.NET en el código HTML, puedes hacerlo con la siguiente sintáxis:
<%– Código a comentar –%>
Todo lo que pongas entre los símbolos <%– y –%> será obviado por el servidor, incluso si es multilínea.
Ejemplo:
</html>
<%@ Page Language=”C#” %>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”><html xmlns=”http://www.w3.org/1999/xhtml” >
<head runat=”server”>
<title>Untitled Page</title>
</head>
<body>
<form id=”form1″ . . . → Read More: Como hacer comentarios en ASP.NET C#