Placing Comments in Aspx Pages

  • Thread starter Thread starter Joey
  • Start date Start date
J

Joey

How do I place comments in aspx pages that are subscribed to master
pages?

This is going to be necessary as all source code pages must have
copyrights/author information etc...

When I attempt to do this with HTML comment tags i.e. <!-- my comments
-->, it doesn't work. The compiler throws errors: "Only Content
controls are allowed directly in a content page that contains Content
controls."

Surely there has to be a way to do this.....?

TIA
 
Surely there has to be a way to do this.....?

<asp:Content ID="cphContent" ContentPlaceHolderID="cphContent"
runat="server">
<!--
comments
-->
</asp:Content>
 
<asp:Content ID="cphContent" ContentPlaceHolderID="cphContent"
runat="server">
<!--
comments
-->
</asp:Content>

Yes I know. Sorry I guess I should have been a little more clear...the
comments need to be at the TOP of the page, before the opening Content
tag.
 
Yes I know. Sorry I guess I should have been a little more clear...the
comments need to be at the TOP of the page, before the opening Content
tag.

??? Why?
 

If each page is marked with copyright/author info at the top, it's
easier to identify. That just makes good sense to me. In my opinioni
Microsoft should allow for programmers to comment at the top of each
page of code, as this is something many people prefer to do. Oh well,
it's not a catastrophe. Thanks guys.
 
Back
Top