M
mad.scientist.jr
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,
like this:
<%
// *******************************************************
// CHANGE HISTORY:
// DATE USER CHANGE
// 08/14/2007 Tue ebloom updated logo
// *******************************************************
%>
I am getting an error
The Controls collection cannot be modified because the control
contains code blocks (i.e. <% ... %>).
It would seem this is because .NET doesn't like inline code (even
though it isn't really "code" we want to include, just comments).
Including these comments in the codebehind is not preferred because
the changes are specific to the ASPX page. Our site has multiple
versions of a given aspx for each language, ie
/en/mypage.aspx
/de/mypage.aspx
etc.
and the codebehind is stored in
/common/mypage.aspx.cs
Any help appreciated, thanks...
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,
like this:
<%
// *******************************************************
// CHANGE HISTORY:
// DATE USER CHANGE
// 08/14/2007 Tue ebloom updated logo
// *******************************************************
%>
I am getting an error
The Controls collection cannot be modified because the control
contains code blocks (i.e. <% ... %>).
It would seem this is because .NET doesn't like inline code (even
though it isn't really "code" we want to include, just comments).
Including these comments in the codebehind is not preferred because
the changes are specific to the ASPX page. Our site has multiple
versions of a given aspx for each language, ie
/en/mypage.aspx
/de/mypage.aspx
etc.
and the codebehind is stored in
/common/mypage.aspx.cs
Any help appreciated, thanks...