Thursday, March 12, 2009

Server-side comment & Client-side comment

While programming, I use the comment/un-comment menu in the Visual Studio toolbar. The commented portion looks like, for example

<%-- Some Comment/Code here --%>

Later on only, I paid attention to it; as what makes it different from our normal HTML comments like;

<!-- Some Comment/Code here -->

The difference is simple. The former is called server-side comment & the latter is client-side comment. Serer-Side comments are not returned to the browser, while the client-side comments are returned to the browser.

Realizing, how I strained/managed to learn complex codes, without paying attention to such a silly thing. We all need Big without realizing what is Small.

No comments:

Best viewed in Internet Explorer 8.