How to Comment an WebControl

  • Thread starter Oscar Roberto Onorato
  • 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
 
K

Ken Cox - Microsoft MVP

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
 
T

Thala Ajit

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.
 
O

Oscar Roberto Onorato

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top