Add comments

  • Thread starter Thread starter Andre
  • Start date Start date
A

Andre

Hi,

If i have some code like this...

<asp:table>
<asp:tablerow>
<asp:tablecell>
<asp:tablerow>
<asp:tablerow>
<asp:tablecell>
<asp:tablerow>
<asp:table>

What can i do to put one table row in comments, so the code will not
show up when i run the page, just like <!-- --> in ASP. Because <!-- -->
give an error : Literal content ('<!--') is not allowed within a
'System.Web.UI.WebControls.TableRowCollection'.

When i want to do some test i don't want to erase code eache time i make
a test.

<!--
<asp:tablerow>
<asp:tablecell>
<asp:tablerow>
-->


Thank you.
 
You need to use the ASP.NET comment delimiter.

<%--
<asp:TableRow>
<asp:TableCell />
</asp:TableRow>
--%>

HTH,

Kyril
 

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

Back
Top