473,402 Members | 2,064 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,402 software developers and data experts.

Commenting Out Controls In HTML View

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
nj********@hotmail.com
http://www.nathansokalski.com/
Jul 16 '06 #1
2 990
hi Nathan,
This is how you comment out serverside declarative code
<%-- --%>

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

"Nathan Sokalski" <nj********@hotmail.comha scritto nel messaggio
news:%2****************@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
nj********@hotmail.com
http://www.nathansokalski.com/

Jul 16 '06 #2
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

"Alessandro Zifiglio" <AlessandroZifiglio @ -h-o-t-m-a-i-l-c-o-mha scritto
nel messaggio news:eb**************@TK2MSFTNGP03.phx.gbl...
hi Nathan,
This is how you comment out serverside declarative code
<%-- --%>

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

"Nathan Sokalski" <nj********@hotmail.comha scritto nel messaggio
news:%2****************@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
nj********@hotmail.com
http://www.nathansokalski.com/


Jul 16 '06 #3

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

Similar topics

4
by: Boban Dragojlovic | last post by:
I create a new webform (I always use codebehind), and I insert some server-side controls into the form (the ASPX) Later, I switch to codeview, and I notice that some (sometimes all) of the...
2
by: satish | last post by:
I have placed servercontrols on Webforms , when i view through browser i am not able to see that controls such as buttons,label etc. I have included runat =server also.Is there any config...
3
by: Steve Drake | last post by:
All, I have a CONTROL that contains 1 control (Control ONE), the 1 control that it can contain 1 or 2 control (Control A and B). Control A, raises and event and Control ONE receives this event...
2
by: Chad | last post by:
I have a problem that I am desperate to understand. It involves dynamically adding controls to a Table control that is built as a result of performing a database query. I am not looking to...
22
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
1
by: Robert | last post by:
I have a large web site converted from 1.1 to 2.0 and in VS 2005, the IDE complains that in the ASPX file (html source): Error 1 Element 'stylesheet' is not a known element. This can...
3
by: Dave | last post by:
I am designing a web page using VS2003 ASP.NET. The page contains various DIVs (panels), one of which is in grid layout. The controls in this DIV render correctly in IE, but when using Firefox they...
2
by: Nathan Sokalski | last post by:
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...
4
by: Erland | last post by:
Hello everyone, I am have couple of bad concepts and would like to clear things up. As I understand ASP.NET server controls contain runat=server tag and they only run on the server. But I've...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.