Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Commenting code in ASP Classic

Tags:

The way I know of hashing out code within ASP Classic is <%-- --%>. Would this be correct? Or is there another way?

like image 954
Developer Jay Avatar asked Jun 05 '13 11:06

Developer Jay


People also ask

How do you comment out code in asp net?

Select the lines you want to be commented in your ASPX, HTML, web config file etc and click on the Comment/ Uncomment icon in Toolbar. Alternatively you can use Keyboard shortcut Ctrl+K Ctrl+C to comment and use Ctrl+K Ctrl+U to uncomment.

How do I comment in asp net visual studio?

FYI | ctrl + K , C is the comment shortcut in Visual Studio.

How do you comment a line in ASP using VBScript?

Unfortunately, you cannot block comment VBScript like you can in other languages. You can comment out each line individually. Just put a single quotation mark at the start of the line you want to 'out' and do then do the same for each subsequent line.

How do you comment a section of code?

The leading characters // are added to the beginning of each line when commenting one or more lines of code. You can also block comment multiple lines of code using the characters /* */ .


1 Answers

Use a single quote, like:

' This is comment 

ASP Classic uses the VBScript/Visual Basic language, and a single quote is commenting in that; <%-- is nothing (I am not 100% sure though).

like image 61
Sumit Gupta Avatar answered Sep 21 '22 14:09

Sumit Gupta