473,791 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1258
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********@hot mail.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******** **********@bsta ffw2k.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
4224
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: signal.signal(signal.SIGPIPE,signal.SIG_IGN) ....in the main function, but the script is still erroring out on sigpipe when the consumer to its producer terminates early.
9
5691
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 Windows XP. I am using IE-6 can someone tell me why?? I am able to run HTML pages, the problem is only witht he ASP Pages.
14
1874
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'; document.getElementById('capabilities').style.visibility='hidden'; } function capabilities() {
30
3526
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 the decimal point. The HTML 4 spec says User agents doesn't need to support 'char' and 'charoff', so I wonder if the problem is lack of support? If so, can the same results be achieved in another way?
2
1432
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 buttons are in one frame, and the content pages are in another (main). I can get read the current page location in the frame "main", but it is not working (getpagenumber)- it should give the current page number, and use that number to tell the...
6
2860
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 fine while the file was in the project directory. When the obsolete file was removed from the project directory, my application will no longer compile. Can someone please help with this issue? Thank in advance, Tom
11
4807
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 title='Off'><input type='hidden' value='Image' name='Action'><input type='hidden' value='hs.ExecX10ByName "Kitchen Espresso Machine", "Off", 100'></form> I've been trying this but I get a syntax error... params = urllib.urlencode({'hidden':...
3
1429
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 line numbers and support some sort of inline or maybe in a 2nd column documentation of the code? I use my own macros for that in TeX: verbatim quote with 1st number declared to be a value of choice.
1
1972
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 page. I have the June Atlas CTP installed.
2
19757
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: print line f.close()
0
9515
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10426
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2913
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.