Add comments

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

Kyril Magnos

You need to use the ASP.NET comment delimiter.

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

HTH,

Kyril
 
A

Andre

Tnx, that's perfect.


Kyril Magnos said:
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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top