Your best source of information and news about hardware, software and windows on the internet

Vista ARTICLES TOP 50 Spyware Virus Vista SOFT Vista HELP

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,

image

Hope it helps.

Popularity: 1%


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.

Related articles

2 comments

Read the comments left by other users below, or:

Get your own gravatar by visiting gravatar.com test
#1. June 18th, 2008, at 7:40 PM.

nice

Get your own gravatar by visiting gravatar.com test
#2. June 18th, 2008, at 7:42 PM.

nice article

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .