473,394 Members | 1,812 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,394 software developers and data experts.

VBscript parsing in IIS

AT
I have the ASP page

<%@ Language=VBScript %>
<%
Option Explicit

Response.End

A = b
%>

On some servers I get parsing error on some I don't
Error says that variable A is not defined.

This is understandable but the script is not even supposed to get to A = b
line
because of Response.end

So there is some setting somewhere responsible for parsing.

Any ideas? please share.

--
_________________________
Anatoli Trifonov
Software Developer & Consultant
Minds are like parachutes - they only function when open.
--Thomas Dewar
Nov 18 '05 #1
2 1507
Anatoli:

At compile time, the VB compiler will tell you about the "A=b"
statement, because it's looking through the whole file( and you have Option
Explicit on ) for errors. At runtime it would skip "A=b" because of
response.end, but not at compile time.

Why not put
Dim A as String = b
0r
Dim A as String
A=b
...and save yourself the hassle?

Kevin Parkinson
"AT" <an*****@avwork.com> wrote in message
news:eg**************@TK2MSFTNGP11.phx.gbl...
I have the ASP page

<%@ Language=VBScript %>
<%
Option Explicit

Response.End

A = b
%>

On some servers I get parsing error on some I don't
Error says that variable A is not defined.

This is understandable but the script is not even supposed to get to A = b
line
because of Response.end

So there is some setting somewhere responsible for parsing.

Any ideas? please share.

--
_________________________
Anatoli Trifonov
Software Developer & Consultant
Minds are like parachutes - they only function when open.
--Thomas Dewar

Nov 18 '05 #2
AT
Try running this page with option Explicit and with response.End

Most probably it will not give error on your machine.

And then if you can explain me why I'd really appreciate it

--
_________________________
Anatoli Trifonov
Software Developer & Consultant
(415) 898-7300 x 404
Minds are like parachutes - they only function when open.
--Thomas Dewar

"Kevin Parkinson" <ke*************@shaw.ca> wrote in message
news:wSigc.159294$Ig.15027@pd7tw2no...
Anatoli:

At compile time, the VB compiler will tell you about the "A=b"
statement, because it's looking through the whole file( and you have Option Explicit on ) for errors. At runtime it would skip "A=b" because of
response.end, but not at compile time.

Why not put
Dim A as String = b
0r
Dim A as String
A=b
...and save yourself the hassle?

Kevin Parkinson
"AT" <an*****@avwork.com> wrote in message
news:eg**************@TK2MSFTNGP11.phx.gbl...
I have the ASP page

<%@ Language=VBScript %>
<%
Option Explicit

Response.End

A = b
%>

On some servers I get parsing error on some I don't
Error says that variable A is not defined.

This is understandable but the script is not even supposed to get to A = b line
because of Response.end

So there is some setting somewhere responsible for parsing.

Any ideas? please share.

--
_________________________
Anatoli Trifonov
Software Developer & Consultant
Minds are like parachutes - they only function when open.
--Thomas Dewar


Nov 18 '05 #3

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

Similar topics

3
by: Tash Robinson | last post by:
Hi I am kind of new to active-x programming, and need a point in the right direction. I have an active-x control that I wrote in VB6. I wrote a testbed in VB and everything seems to work OK....
7
by: A Ratcliffe | last post by:
As you might have gathered from the Subject, I've been experimenting with using VBScript classes in my ASP pages to tidy the script up. Generally things are going well. Since I come from a C++...
29
by: Christopher Brandsdal | last post by:
If I have a .ASP page that runs JScript code - is it possible to include an ..ASP page that runs VBscript???
0
by: Dan | last post by:
Hello, I've been asked by my supervisor to document VBScript code in our existing ASP classic pages .. primarily, what hooks we've got into our SQL databases using ADO. Right now, I've...
2
by: | last post by:
Hi all, I'm here to humbly request some "gimme" help from the group. I discovered the infinite wonders of VS.NET 2005 and ASP.NET 2.0 at Tech Ed a couple of weeks ago, and since returning to...
2
by: AT | last post by:
I have the ASP page <%@ Language=VBScript %> <% Option Explicit Response.End A = b %>
5
by: Drum2001 | last post by:
I have a database that allows the user to input a department code and get all the employees within the department. The table is generated from another script that places the numeric code as a...
6
by: Julien | last post by:
Hello, I have some files located in a file server and managed by a SQL database from a web based interface using ASP + VBSCRIPT technology. I need to automatically copy those files to a web...
1
by: Lou Civitella | last post by:
I have found code that Recycles the Application Pool but it was written in VBScript can anyone convert this for me to VB.Net? Thanks! 'Appendix B: Application Pool Recycle script - Save as...
6
by: rishabhshrivastava | last post by:
Hello All, I am using ASP.NET 2.0 and I am experiencing a problem using vbscript that is this script on client side is preventing the postback of my controls. I have a dropdownlist which is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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
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...

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.