0

I want to comment line for single line in asp.net.Now I use multi line comment line <%-- --%>.Is any other way to comment single line. In php I use comment like // for single line. I use single line comment for future verification.Without comment line my get confused.

2
  • Does an apostrophe (') work? Commented Mar 26, 2015 at 6:09
  • In Visual Studio use ctrl+k+c to comment and ctrl+k+u to uncomment. Multiple and single lines will be taken care by IDE. Commented Mar 31, 2015 at 10:55

1 Answer 1

1

On code behind:

// this is comment
/* This is comment */

on .aspx page:

<!-- This is comment-->
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.