Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Placing Comments in Aspx Pages

Reply
Thread Tools

Placing Comments in Aspx Pages

 
 
Joey
Guest
Posts: n/a
 
      09-17-2007
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

 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      09-17-2007
"Joey" <> wrote in message
news: ups.com...

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


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


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
 
 
 
Joey
Guest
Posts: n/a
 
      09-17-2007
On Sep 17, 12:21 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.net> wrote:
> "Joey" <joey.pow...@topscene.com> wrote in message
>
> news: ups.com...
>
> > Surely there has to be a way to do this.....?

>
> <asp:Content ID="cphContent" ContentPlaceHolderID="cphContent"
> runat="server">
> <!--
> comments
> -->
> </asp:Content>
>
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net


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.

 
Reply With Quote
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      09-17-2007
"Joey" <> wrote in message
news: ups.com...

> 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?


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
John Timney \(MVP\)
Guest
Posts: n/a
 
      09-17-2007
Sounds like you need to be updating the master with the information you need
from within your content pages contentplaceholders, rather than thinking
about this from a content perspective. Take a look at the conmtent to
master page interaction example by Scott Allan at
http://www.odetocode.com/Articles/450.aspx

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog


"Joey" <> wrote in message
news: ups.com...
> On Sep 17, 12:21 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.net> wrote:
>> "Joey" <joey.pow...@topscene.com> wrote in message
>>
>> news: ups.com...
>>
>> > Surely there has to be a way to do this.....?

>>
>> <asp:Content ID="cphContent" ContentPlaceHolderID="cphContent"
>> runat="server">
>> <!--
>> comments
>> -->
>> </asp:Content>
>>
>> --
>> Mark Rae
>> ASP.NET MVPhttp://www.markrae.net

>
> 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.
>



 
Reply With Quote
 
Joey
Guest
Posts: n/a
 
      09-18-2007
On Sep 17, 4:14 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.net> wrote:
> "Joey" <joey.pow...@topscene.com> wrote in message
>
> news: ups.com...
>
> > 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?
>
> --
> Mark Rae
> ASP.NET MVPhttp://www.markrae.net


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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
passing variables from .aspx.cs code pages to .aspx pages RadioSignal ASP .Net Web Controls 7 10-21-2005 11:41 PM
Placing ActivexControl in Windows control in aspx page Shahzad Godil ASP .Net 2 08-31-2005 05:56 AM
Placing ActivexControl in Windows control in aspx page Shahzad Godil ASP .Net Building Controls 2 08-31-2005 05:56 AM
Placing webwiz ASP-made site components in ASP pages mf_sina ASP .Net Web Controls 0 02-13-2005 10:22 AM
Placing webwiz ASP-made site components in ASP pages mf_sina ASP .Net Building Controls 0 02-13-2005 10:18 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57