473,385 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Placing Comments in Aspx Pages

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

Sep 17 '07 #1
5 1815
"Joey" <jo*********@topscene.comwrote in message
news:11**********************@w3g2000hsg.googlegro 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

Sep 17 '07 #2
On Sep 17, 12:21 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.netwrote:
"Joey" <joey.pow...@topscene.comwrote in message

news:11**********************@w3g2000hsg.googlegro 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.

Sep 17 '07 #3
"Joey" <jo*********@topscene.comwrote in message
news:11*********************@k79g2000hse.googlegro 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

Sep 17 '07 #4
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" <jo*********@topscene.comwrote in message
news:11*********************@k79g2000hse.googlegro ups.com...
On Sep 17, 12:21 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.netwrote:
>"Joey" <joey.pow...@topscene.comwrote in message

news:11**********************@w3g2000hsg.googlegr oups.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.

Sep 17 '07 #5
On Sep 17, 4:14 pm, "Mark Rae [MVP]" <m...@markNOSPAMrae.netwrote:
"Joey" <joey.pow...@topscene.comwrote in message

news:11*********************@k79g2000hse.googlegro 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.

Sep 18 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dickyb | last post by:
Extracting an Icon and Placing It On The Desktop (C# Language) I constructed a suite of programs in C++ several years ago that handle my financial portfolio, and now I have converted them to...
2
by: Art Kedroski | last post by:
We are using .NET validators on most of our aspx pages. When the validator is contained within a datalist (i.e. the EditItemTemplate) the WebUIValidation.js file location tag is not rendered on...
3
by: Dave Mehrtens | last post by:
We are attempting to use both Dreamweaver and .Net to edit aspx files. Dreamweaver uses HTML comments to embed proprietary information for it's editor. However, when we load these pages into...
1
by: Dave Mehrtens | last post by:
Microsoft, I would appreciate your comments on why the comments are moved in VS.NET. DAve "Dave Mehrtens" <dmehrtens@rightreasontech.com> wrote in message...
4
by: Stu | last post by:
Hi, I am writing a content management system that has to have W3C compliant output. The pages are template driven and there are special strings within the template to be used as placeholders for...
12
by: Logan | last post by:
Hi, I am not a very experienced asp.net developer, but have a fair idea on how it works & better idea on vb.net. My requirement is to place an asp.net page on a website - which currently has...
7
by: shwetu | last post by:
If i place vb and cs class files together in App_Code in asp.net 2.0 i get error that i can't place as they us a different language which is not allowed as they have to be complied together. Is...
2
by: mad.scientist.jr | last post by:
In .NET 2.0, is there any way to include comments in the aspx file that do not get rendered to the client (ie no <!-- -->) ? When I try to include C# comments in a code block in an aspx page,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.