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

OPTION EXPLICIT

Have you encountered "OPTION EXPLICIT" not working in a
ASP program?

- Windows 2000 Server
- IIS 5.0
- Active Server Pages (VBScript)

We had a program that had "OPTION EXPLICIT" in the first
line. After a short processing, RESPONSE.REDIRECT
redirects the user to another server. The program had a
bunch of variables that weren't declared, but were used in
the logic before RESPONSE.REDIRECT.

The ASP program never gave an error message for the
undeclared variables except for one user (in the LIVE
version) who logged the problem recently and we came to
know about it. The program passed
through "development", "staging" and then went "LIVE" and
had been "LIVE" for a few months.

How could this have happened?

Jul 19 '05 #1
1 2083
First of, show us some sample code.

Second, did the other users get ANY error at all, if not something that
stated "Variable not declared" specifically? If so, they may have their
"Show friendly errors" turned on in their browsers.

--
Manohar Kamath
Editor, .netBooks
www.dotnetbooks.com
"Sundar" <su*****@drone.com> wrote in message
news:08****************************@phx.gbl...
Have you encountered "OPTION EXPLICIT" not working in a
ASP program?

- Windows 2000 Server
- IIS 5.0
- Active Server Pages (VBScript)

We had a program that had "OPTION EXPLICIT" in the first
line. After a short processing, RESPONSE.REDIRECT
redirects the user to another server. The program had a
bunch of variables that weren't declared, but were used in
the logic before RESPONSE.REDIRECT.

The ASP program never gave an error message for the
undeclared variables except for one user (in the LIVE
version) who logged the problem recently and we came to
know about it. The program passed
through "development", "staging" and then went "LIVE" and
had been "LIVE" for a few months.

How could this have happened?

Jul 19 '05 #2

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

Similar topics

8
by: biro man | last post by:
I have a dynamic database driven page that I have been working on and tweaking etc until I have got it to work pretty much the way I want it to. I also have a defined website. I wish to include...
1
by: Robert Mark Bram | last post by:
Hi All! I have the following in a vb script: option explicit Response.Expires = -1 Server.ScriptTimeout = 600 The script gets imported in the following way: <script language="VBscript"...
7
by: Mats | last post by:
Option Explicit does not work anymore.(?) If you put <%option explicit%> at the top of your pages (direktly after the language declaration) you should get an error for each undeclared variable....
12
by: Doug Hill | last post by:
Please, Microsoft, update Option Explicit Option Strict barks at late binding. We love late binding. So Option Strict flags too many things. Option Explicit is misleading. It allows Dim...
5
by: ken | last post by:
hi All What does this command dot Option Explicit
6
by: Brett | last post by:
I find there is more casting required in C# than VB.NET. If Option Strict/Explicit is turned on, will this basically create the same environment as C# - uppercase, more casting required, must...
9
by: YYZ | last post by:
After reading many messages in this group, it seems that the preferred setting for this is ON. Okay, I did that in my project (first with ..Net -- long time VB6 developer) and now a bunch of...
6
by: John Kotuby | last post by:
Hi all, I am simply trying to include the Option Explicit declaration at the top of an ASP page and am getting an error: Error Type: Microsoft VBScript compilation (0x800A0400) Expected...
0
by: Michael Jenck | last post by:
Hi All, I have been playing with the codedom and can't get it to output for option compare Binary with a CodeCompileUnit. I have searched the web and Don't now if it's possible. If it's not...
1
by: Jimmbo | last post by:
I get an option explicit error saying it does not appear as the first line whenever I use it with utf-8 charset encoding on my Sun Cobalt server running Chillisoft on Linux. The error does not...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.