Tip/Trick: Using Server Side Comments with ASP.NET 2.0(weblogs.asp.net)

submitted by MarthaBassMarthaBass(490) 5 years, 10 months ago

Scott Guthrie shares another trick with us, this time Server side comments. I had no idea they existed. "ASP.NET supports a little known feature called “server-side comments” that you can use to completely disable code/controls/html in a page. Server-side comments in ASP.NET are delimited using a <%-- --%> syntax."

2 comments |category: |Views: 9

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by gavinjoycegavinjoyce(25.7k) 5 years, 10 months ago 0

Nice tip, I didn't know about server side comments.

Reply

posted by samdnpsamdnp(980) 4 years, 2 months ago 0

Saves bandwidth, more professional

Reply

information Login or create an account to comment on this story