How do I comment out stuff in an aspx file

Discussion in 'ASP .Net Web Controls' started by David Thielen, May 28, 2006.

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

    --
    thanks - dave
    david_at_windward_dot_net
    http://www.windwardreports.com
     
    David Thielen, May 28, 2006
    #1
    1. Advertising

  2. 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.
     
    Walter Wang [MSFT], May 29, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Smith

    how to comment-out aspx code

    John Smith, Oct 4, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    15,452
    John Smith
    Oct 6, 2004
  2. John M
    Replies:
    1
    Views:
    1,178
    Kumar Reddi
    May 29, 2005
  3. Alec S.
    Replies:
    10
    Views:
    10,157
    Alec S.
    Apr 16, 2005
  4. KevinGPO
    Replies:
    0
    Views:
    384
    KevinGPO
    Feb 17, 2006
  5. Andrew Chalk

    Comment on an ASPX page

    Andrew Chalk, Oct 15, 2005, in forum: ASP .Net Web Controls
    Replies:
    9
    Views:
    519
    clintonG
    Oct 18, 2005
Loading...

Share This Page