473,625 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VBscript parsing in IIS

AT
I have the ASP page

<%@ Language=VBScri pt %>
<%
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 1525
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******** ******@TK2MSFTN GP11.phx.gbl...
I have the ASP page

<%@ Language=VBScri pt %>
<%
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.1592 94$Ig.15027@pd7 tw2no...
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******** ******@TK2MSFTN GP11.phx.gbl...
I have the ASP page

<%@ Language=VBScri pt %>
<%
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
5262
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. I included the testbed and active-x in the same project so I can refrence the active-x in design time and when I run the testbed I can set breakpoints in the active-x for debugging.
7
6693
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++ background, I have long made use of singleton objects, in various forms, and I can see an obvious use for one here but not sure if I can. I'll explain the situation:- I have a cDataLink class, configured via a couple of Const defines for the...
29
6009
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
979
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 written some C# code which recursively parses all ASP files in a site to extract out all client and server-side procedures. However, I'd like to take it a step further (if possible) to actually something akin to an EVAL(); not to actually run the code...
2
1781
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 work I haven't looked back. Unfortunately I still have some critical functions that I originally created as vbscript functions. I need these functions to do my work. Before I can transition entirely to C#-based ASP.NET sites, I need these functions...
2
362
by: AT | last post by:
I have the ASP page <%@ Language=VBScript %> <% Option Explicit Response.End A = b %>
5
2291
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 text field, which is fine. My question is the following: When I ask the user to input a department code, for example 8615, it will bring up the report with the correct data, displaying the
6
12586
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 folder. I that possible? Thanks.
1
11850
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 Recycleap.vbs 'By Default Recycle All App Pools bRecycleAll = 1 'Delay between each apppool recycle in seconds (if all apppools are being recycled)
6
1947
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 supposed to perform some fucntion when the selected index is changed, it works fine without vbscript code(when i comment out that code) but when I uncomment the code the postback dosen't happen.
0
8251
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8182
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
8635
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
7178
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
5570
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
4085
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1800
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1496
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.