ASP.NET Kommentare im HTML

by admin 9. February 2008 21:18

Kommentare sind ein wichtiges Kommunikationsmittel. Nicht das Offensichtliche soll erklärt werden, sondern das was schwierig oder nur schwer zu erschliessen ist.

Für Web-Designer, die mit ASP.NET arbeiten, ist manchmal  oft nicht ersichtlich woher die Daten auf einer dynamischen Seite eigentlich herkommen, bzw. manchmal fehlt sogar die Information, das Daten gesetzt werden.

image

In HTML läßt sich ein Kommentar mit dieser Syntax setzen:  <!--mein Kommatar -->.

Doch auch ASP.NET kennt Kommentare: <%-- mein Kommentar --%> - der Vorteil ist, dass der Kommentar nicht zum Server gesendet wird. Also weniger Daten übers Netz gehen.  

image

enjoyed the post?

Tags:

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About Oliver

shades-of-orange.com code blog logo I build web applications using ASP.NET and have a passion for javascript. Enjoy MVC 4 and Orchard CMS, and I do TDD whenever I can. I like clean code. Love to spend time with my wife and our children. My profile on Stack Exchange, a network of free, community-driven Q&A sites

About Anton

shades-of-orange.com code blog logo I'm a software developer at teamaton. I code in C# and work with MVC, Orchard, SpecFlow, Coypu and NHibernate. I enjoy beach volleyball, board games and Coke.