ASP.NET 2.0 Server Side Comments
Ever wonder how to write comments within an aspx file? <!– –> won’t cut it as it gets processed on the server side and the resulting HTML will contain the commented code as processed. Enter, <%– –%>. There are 2 ways you can truly comment on an aspx file.
One way. for example,
<%–
Anything within this block will not be parsed/handled by ASP.NET.
<asp:TextBox runat=”server”></asp:TextBox>
–%>
And here is the other visual way of doing it,
Hope it helps.
Written by askars. Read more great feeds at is source WEBSITE
2 comments.
Read more articles on howto and ASP.NET and .Net and Visual Studio and Tips and Tricks.
- [+] Digg: Feature this article
- [+] Del.icio.us: Bookmark this article
- [+] Furl: Bookmark this article
















#1. June 18th, 2008, at 7:40 PM.
nice