Home All Groups Group Topic Archive Search About

Commenting Out Controls In HTML View

Author
16 Jul 2006 4:57 AM
Nathan Sokalski
As we all know, the <!-- and --> tags in HTML comment out HTML in a *.html
file. However, this does not seem to work in ASP.NET *.aspx files. Is there
a way to comment out ASP.NET controls that are created declaratively in a
*.aspx file? This would make debugging much easier in many cases. Thanks.
--
Nathan Sokalski
njsokal***@hotmail.com
http://www.nathansokalski.com/

Author
16 Jul 2006 9:12 AM
Alessandro Zifiglio
hi Nathan,
This is how you comment out serverside declarative code
<%-- --%>

Regards,
Alessandro Zifiglio
http://www.AsyncUI.net

Show quoteHide quote
"Nathan Sokalski" <njsokal***@hotmail.com> ha scritto nel messaggio
news:%234RBXRJqGHA.4424@TK2MSFTNGP05.phx.gbl...
> As we all know, the <!-- and --> tags in HTML comment out HTML in a *.html
> file. However, this does not seem to work in ASP.NET *.aspx files. Is
> there a way to comment out ASP.NET controls that are created declaratively
> in a *.aspx file? This would make debugging much easier in many cases.
> Thanks.
> --
> Nathan Sokalski
> njsokal***@hotmail.com
> http://www.nathansokalski.com/
>
Author
16 Jul 2006 9:22 AM
Alessandro Zifiglio
I should of posted this link earlier as well.
http://msdn2.microsoft.com/en-us/library/4acf8afk.aspx

Regards,
Alessandro Zifiglio
http://www.AsyncUI.net

Show quoteHide quote
"Alessandro Zifiglio" <AlessandroZifiglio @ -h-o-t-m-a-i-l-c-o-m> ha scritto
nel messaggio news:ebarufLqGHA.2304@TK2MSFTNGP03.phx.gbl...
> hi Nathan,
> This is how you comment out serverside declarative code
> <%-- --%>
>
> Regards,
> Alessandro Zifiglio
> http://www.AsyncUI.net
>
> "Nathan Sokalski" <njsokal***@hotmail.com> ha scritto nel messaggio
> news:%234RBXRJqGHA.4424@TK2MSFTNGP05.phx.gbl...
>> As we all know, the <!-- and --> tags in HTML comment out HTML in a
>> *.html file. However, this does not seem to work in ASP.NET *.aspx files.
>> Is there a way to comment out ASP.NET controls that are created
>> declaratively in a *.aspx file? This would make debugging much easier in
>> many cases. Thanks.
>> --
>> Nathan Sokalski
>> njsokal***@hotmail.com
>> http://www.nathansokalski.com/
>>
>
>