UserName
UserName

Reputation: 123

Why do my comments keep disappearing in my asp.net aspx page?

I am writing a webpage using visual studio 2013 and every time I make a comment in my code save it and then run it, my comments disappear.

Upvotes: 0

Views: 166

Answers (2)

ImDeveloping
ImDeveloping

Reputation: 101

What do you mean your comments are dissapearing? In the actual .aspx page after the project builds ?

using <%-- comment goes here --%> will not be visible if you right click - view source.

try highlighting the code you want commented out and pressing CTRL + K,C to comment out code as well

Upvotes: 1

Rahul
Rahul

Reputation: 77876

Yes it will cause it's not an HTML element that will render in your web browser. What you have is a developer comment for you to see in design time but that will not render in page.

Most probably you have a comment like below

<%-- This is a comment --%>

Upvotes: 0

Related Questions