473,407 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

comment in ASP page

I want to know what's the convenient way to comment out a block in ASP
pages? I read a book, and I thought we can use /** */ to comment out the
VBScript in ASP page, but it yields run time error.

All I know is to use ' but this is very slow if I want to comment out a
block? Any suggestions??


Jul 19 '05 #1
4 5432
http://www.aspfaq.com/2179

"Matthew Louden" <jr********@hotmail.com> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...
I want to know what's the convenient way to comment out a block in ASP
pages? I read a book, and I thought we can use /** */ to comment out the
VBScript in ASP page, but it yields run time error.

All I know is to use ' but this is very slow if I want to comment out a
block? Any suggestions??

Jul 19 '05 #2
Matthew Louden wrote:
I want to know what's the convenient way to comment out a block in ASP
pages? I read a book, and I thought we can use /** */ to comment out
the VBScript in ASP page, but it yields run time error.

All I know is to use ' but this is very slow if I want to comment out
a block? Any suggestions??


If you're using Interdev, there is an free Add-in available from
http://www.platformdev.com/ that allows you to comment/uncomment blocks,
similar to the functionality in the VB IDE.

HTH,
Bob Barrows
Jul 19 '05 #3
Aaron Bertrand [MVP] wrote on 19 sep 2003 in
"Matthew Louden" <jr********@hotmail.com> wrote in message
I want to know what's the convenient way to comment out a block in
ASP pages? I read a book, and I thought we can use /** */ to comment
out the VBScript in ASP page, but it yields run time error.

All I know is to use ' but this is very slow if I want to comment out
a block? Any suggestions??


http://www.aspfaq.com/2179


Two very usefull tips in 2179, Aaron, though they only dependably work
for correct code, and the reason for remarking out in a debug situation
often is deselecting a faulty code.

Suppose you have a spurious "end sub" or "end if" line inside that code ?

=================================

However there is another way,
which most editors [like my EditPad] support:
Select the block of code you want "remarked" including the line before
and excluding part of the last line.
Replace "selected only" all "newline"s with "newline" plus "' "
Response.write "http://www.aspfaq.com/2179"
Response.write "http://www.aspfaq.com/2179"
Response.write "http://www.aspfaq.com/2179"
Response.write "http://www.aspfaq.com/2179"

will become:

' Response.write "http://www.aspfaq.com/2179"
' Response.write "http://www.aspfaq.com/2179"
' Response.write "http://www.aspfaq.com/2179"
' Response.write "http://www.aspfaq.com/2179"

The reverse should be obvious.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #4
Gazing into my crystal ball I observed "Matthew Louden"
<jr********@hotmail.com> writing in news:u9RaRxjfDHA.2332
@TK2MSFTNGP12.phx.gbl:
I want to know what's the convenient way to comment out a block in ASP
pages? I read a book, and I thought we can use /** */ to comment out the
VBScript in ASP page, but it yields run time error.

All I know is to use ' but this is very slow if I want to comment out a
block? Any suggestions??


If you're using HTML-Kit [http://www.chami.com/html-kit] you can download
a plug-in [http://www.chami.com/html-
kit/plugins/info/frsvbstyleblockcomment/] that will do this for you. Just
highlight the text, hit the button and it's all commented.

--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Amit | last post by:
Hi, There is a html comment, which if we write and save that page with only that comment, & try to open it in browser , it displays the name of the invertors of HTML. The important part is, we...
13
by: Ray Cassick \(Home\) | last post by:
I have been using XML Comments in VB.NET during my time with VS.NET 2003 thanks to VBXC and NDoc. I just started to upgrade one of my projects into VB.NET 2005 and am seeing some odd errors...
1
by: R.A.M. | last post by:
Hello, (Sorry for my English, it's not my native language...) Could you explain me simple problem? I have little experience. I commented part of .aspx page and tried to rebuild the project....
6
by: patrick j | last post by:
Hi I've been testing out the "Conditional Comment" for IE. This is because for my web-site I want to have two style sheets, one for IE 6 and one for other browsers. Thus I hope to have my...
0
by: karen987 | last post by:
Could someone please tell me what code to add here? I have a weblog, with daily news which readers can add comments to, which are stored in a database. The form to add the comments is on an ASP page,...
12
RedSon
by: RedSon | last post by:
Greetings all, The host I use does not let me have mysql so I am going to need to write a comment engine that uses flat files. Unless of course there are commenting solutions already available...
3
by: Richard | last post by:
Again, new to DB2. Trying to do something I can do in Sybase ASE. In any Sybase SQL script I can use /* */ to comment out a block of code. In the DB2 9.0 SQL Reference Manual V1 it says: ...
3
by: legsmacgee | last post by:
Hello, I have a site that displays a video, and allows the user to comment. Currently, to comment the user enters their comment into a textbox, and submit it to a separate PHP file, that adds...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.