473,409 Members | 2,022 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,409 software developers and data experts.

asp pages ignoring lines of script

Can't figure this one.
web page with vbscript asp, w2k/iis5
The page opens with no errors (syntax errors get picked up just fine)
but. If a line contains a variable that's either not dimmed, or has no
value, or returns a bad value from say instr(), the line is simply ignored,
or if its inside a loop or for/next, that block is ignored.

any ideas?
Sep 27 '05 #1
4 1248
on error resume next

Brian

Sep 27 '05 #2
chuck <%Option explicit%> at the top of the page to make sure your code
is correct before any actions are taken

Sep 28 '05 #3
On Tue, 27 Sep 2005 13:42:55 -0700, "s_m_b" <sm********@hotmail.com>
wrote:
Can't figure this one.
web page with vbscript asp, w2k/iis5
The page opens with no errors (syntax errors get picked up just fine)
but. If a line contains a variable that's either not dimmed, or has no
value, or returns a bad value from say instr(), the line is simply ignored,
or if its inside a loop or for/next, that block is ignored.

any ideas?


Stop writing bad code. :)

Check all inputs. Use Option Explicit. Test heavily. Do not use On
Error Resume Next until the code is fully debugged.

Probably 80% of any decent code is error trapping and handling.

Jeff
Sep 28 '05 #4
Brian Staff <brianstaff AT [NoSpam]cox DOT net> wrote in
news:VA******************@bstaffw2k.jda.corp.local :
on error resume next

Brian


if only that worked (sorry - should have mentioned that I'd tried this!)
Sep 28 '05 #5

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

Similar topics

1
by: Dan Stromberg | last post by:
I have a python script that sometimes gets a SIGPIPE signal, and errors out. And I want it to just terminate as though it had hit EOF. I'm running: ...
9
by: Abhi | last post by:
Hi, I created a virtual directory in my default website, then I created a few ASP pages. When i run these files from the browser, i go to the screen "page cannot be displayed" I am using...
14
by: Dafydd | last post by:
I have the following Script in my web page reduce to two pages. <script> function details() { document.getElementById('details').style.visibility='visible';...
30
by: Gustaf Liljegren | last post by:
I'm working with some semi-advanced tables with lots of decimal numbers in, and I can't get the alignment to work. http://www.algonet.se/~gustafl/temp/output_ib.html I want numbers aligned to...
2
by: Chris | last post by:
I have a script that will navigate back and foreward using a form. The files it navigates are named: bg1.html, bg2.html, bg3.html, etc. This is happening in a frameset, where my BACK and FORWARD...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
11
by: livin | last post by:
I need to post form data to an ASP page that looks like this on the page itself... <form method='POST'><input src=\icons\devices\coffee-on.gif type='image' align='absmiddle' width=16 height=16...
3
by: ThomasH | last post by:
Hi: being a relatively inexperienced HTML user I would like to ask you if you know of any macro(?), css style(?) or any other convenient method which would allow to quote pieces of code with...
1
by: amir | last post by:
Hi, When compiling a page in VS2005 this morning I received 101 messages regarding schema problems in my web.config file. When I go to view an aspx page in my IIS, IE just displays a blank...
2
by: Francesco Pietra | last post by:
Please, how to adapt the following script (to delete blank lines) to delete lines containing a specific word, or words? f=open("output.pdb", "r") for line in f: line=line.rstrip() if line:...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.