How do I comment out stuff in an aspx file


D

David Thielen

When I put:

<!-- bugbug - save only
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="RequiredFieldValidator"
ControlToValidate="saveTitle">You must enter a
title.</asp:RequiredFieldValidator>
-->

It's still a control.
 
Ad

Advertisements

W

Walter Wang [MSFT]

Hi David,

Thank you for post!

The correct way to comment out server code is to use <%-- and --%> pair.

Have a nice day!


Regards,
Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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