How do I comment out stuff in an aspx file


David Thielen

When I put:

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

It's still a control.

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!

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