Is there a way to comment out markup in an .ASPX page?

后端 未结 8 1716
暗喜
暗喜 2020-12-22 18:05

Is there a way to comment out markup in an .ASPX page so that it isn\'t delivered to the client? I have tried the standard comments

8条回答
  •  一个人的身影
    2020-12-22 18:55

    I believe you're looking for:

    <%-- your markup here --%>
    

    That is a serverside comment and will not be delivered to the client ... but it's not optional. If you need this to be programmable, then you'll want this answer :-)

提交回复
热议问题