You can use <%-- --%> to comment out server controls in markup at the server. E.g.: this button will never make it to the browser and won't be accessible from code behind:
<%--<asp:Button ID="Button1" runat="server" Text="Button" />--%>
In contrast, an HTML comment like this:
still makes Button1 a valid server side button that you can access in code and that makes it to the browser However, in the browser it will be seen as a plain comment:
Try pressing Ctrl+K followed by C in VWD; it will automatically add the right code for you, regardless of where you are (ASPX, code behind, class file and so on)
HtH,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
Beginning ASP.NET 3.5 : in C# and VB,
ASP.NET 2.0 Instant Results and
Dreamweaver MX 2004
Want to be my colleague? Then check out this post.