How to Comment an WebControl

  • Thread starter Thread starter Oscar Roberto Onorato
  • Start date Start date
O

Oscar Roberto Onorato

Hi Guys!

If i comment an html control then i amke that:

<!-- <input type="text" ... > -->

But, if y try comment a WebControl, it is not posible.

Hoy to commente this line?

<asp:label id="PaginaTitulo" cssclass="Head" EnableViewState="False" runat="server" Text="<%# Titulo %>"/>

Thanks
 
Hey Oscar,

You can't embed the comment inside the control but you can put a server-side
comment before and after it:

<%'A VB comment for you %>

"Oscar Roberto Onorato" <oscar.onorato[ARROBA]gmail.com> wrote in message
Hi Guys!

If i comment an html control then i amke that:

<!-- <input type="text" ... > -->

But, if y try comment a WebControl, it is not posible.

Hoy to commente this line?

<asp:label id="PaginaTitulo" cssclass="Head" EnableViewState="False"
runat="server" Text="<%# Titulo %>"/>

Thanks
 
Same Web Control can be commented in the same way as HTML Controls

It will be executed by IIS but will not be displayed when the page is finally
rendered.
 
Thanks gyus.
"Ken Cox - Microsoft MVP" <[email protected]> escribió en el mensaje Hey Oscar,

You can't embed the comment inside the control but you can put a server-side
comment before and after it:

<%'A VB comment for you %>

"Oscar Roberto Onorato" <oscar.onorato[ARROBA]gmail.com> wrote in message
Hi Guys!

If i comment an html control then i amke that:

<!-- <input type="text" ... > -->

But, if y try comment a WebControl, it is not posible.

Hoy to commente this line?

<asp:label id="PaginaTitulo" cssclass="Head" EnableViewState="False"
runat="server" Text="<%# Titulo %>"/>

Thanks
 
Back
Top