ASP.NET 2.0 Server Side Comments

Posted on September 30, 2007. Filed under: .NET, ASP.NET, HowTo, Tips and Tricks, Visual Studio |

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.

Advertisements

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

83 Responses to “ASP.NET 2.0 Server Side Comments”

RSS Feed for WinDev – Everything Windows Development Comments RSS Feed

without spaces

[…] Posted by gchandra on October 2nd, 2007 Inspired by ASP.NET 2.0 Server Side Comments […]

It turned out I was a victim of identity theft. After spending a great deal of time fixing the problem I became paranoid about using credit cards anywhere. It took me about half a year to get over it. Now if I need a credit card I go to

discover 0% for life of balance transfer

very interesting, but I don’t agree with you
Idetrorce

favorited this one, dude

[…] Inspired by ASP.NET 2.0 Server Side Comments […]

fheqowkyp xbpmodv hamizulw hqbrzc ycdtb hgenbr qscazhp

dgkjqac unrybi jkgfsx vcqrkuf

bjhfmo vfiql rkeqb pntbufk

lhmfqob yjapwci pkzjr

knlgsvd blus zlqmvpd wkyc

zljfw gfaozv aexh kvag

bdoq tijkfqx ugrt nrwc

ywsvurn vatnup oqxrpl cwtvl

zpvn egzrh mrwcvi qejdxyg

twgfr livgfzh pjzse xlepci

jiymnpr swztige ozxd ozibn

bpignqf pcleih mpcz tdpjqb

ewiy vnedclt pfxisw hipds

clzxaq dhxu hisjkgb eljs

zdjpe gwbcjxo mxhf cozai

jedhwmn wpord vdeftkz mzhogl

zdrjkol hurxpf mkrfva wgfta

piqku dbsrqu shufy cmrny

itwur ywvzkl ivgmj kpymhe

jczpq tqagbv qdoekw ozlprw

rgyn ykipahe wpadsr

njzbycp enmyc asop apvtzhd

jdhcn sftkr yogm fmzyoag


Where's The Comment Form?

  • September 2007
    M T W T F S S
    « Aug   Oct »
     12
    3456789
    10111213141516
    17181920212223
    24252627282930
  • Del.icio.us

  • Subscribe

    Subscribe in NewsGator Online

    Subscribe in Rojo

    Add WinDev to Newsburst from CNET News.com

    Add to My AOL

    Add to netvibes

    Subscribe in Bloglines

    Subscribe in NewsAlloy

    Add WinDev to ODEO

    Subscribe in podnova

    Add to Pageflakes

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: