The way I know of hashing out code within ASP Classic is <%-- --%>
. Would this be correct? Or is there another way?
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.
FYI | ctrl + K , C is the comment shortcut in Visual Studio.
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.
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 /* */ .
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With