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

Variable scope with Include Directive ???

I am opening a recordset on page 'A' then using server.execute to populate a
form on page 'B'.
I am getting a a type mismatch error, which suggests the variable doesn't
exist on page 'B'.

I know variable state is supposed to be maintained when using
server.execute.., the problem is what i don't know.

1. could someone please enlighten me as to what is going on.
2. give some suggestion about how work around this problem.

Thanx to those who read this message.
Jul 19 '05 #1
2 2783
I don't think that variables do carry over when you .execute. They will
with an include though.

Ray at work

"Anthony Judd" <adsf@.com> wrote in message
news:ut**************@tk2msftngp13.phx.gbl...
I am opening a recordset on page 'A' then using server.execute to populate a form on page 'B'.
I am getting a a type mismatch error, which suggests the variable doesn't
exist on page 'B'.

I know variable state is supposed to be maintained when using
server.execute.., the problem is what i don't know.

1. could someone please enlighten me as to what is going on.
2. give some suggestion about how work around this problem.

Thanx to those who read this message.

Jul 19 '05 #2
You have to use session variables to transfer data between your
original script and server.execute

"Anthony Judd" <adsf@.com> wrote in message news:<ut**************@tk2msftngp13.phx.gbl>...
I am opening a recordset on page 'A' then using server.execute to populate a
form on page 'B'.
I am getting a a type mismatch error, which suggests the variable doesn't
exist on page 'B'.

I know variable state is supposed to be maintained when using
server.execute.., the problem is what i don't know.

1. could someone please enlighten me as to what is going on.
2. give some suggestion about how work around this problem.

Thanx to those who read this message.

Jul 19 '05 #3

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

Similar topics

7
by: Nick | last post by:
In ASP you can create a variable that is accessible by all scripts in an application. Is this possible in PHP? Storing a multi-dimensional array in memory has much greater performance benefits...
6
by: Tom | last post by:
I'm tying myself in knots trying to figure out variable scope with constants and include files. This is what I'm doing: A page (index.php) on my website includes a general purpose include file...
3
by: Baffin Shea | last post by:
Dear All, The following script is generated by frontpage itself in order to insert menu.htm in the current .htm page: <body> : <!--webbot bot="Include" U-Include="menu.htm" TAG="BODY" --> :...
4
by: dharmesh Gupta | last post by:
Hi, i have a program splitted across two files main_prog.cpp idr.cpp my main_prog.cpp accepts a file name a s parameter. i want to capture this file name in a variable and use it in idr.cpp ...
2
by: Dennis M. Straussfogel | last post by:
I'm trying to implement a nested SSI file that has in it the line: <!--#include virtual="<!--#echo var='VAR_location'-->pagelinks.txt" --> where VAR_location is a variable set in the "calling"...
6
by: Razvan | last post by:
Hi, I took a C++ test and I found the following question: Q. Inside a class member function definition, which scope is searched
6
by: Maarten | last post by:
Here is a nice problem. I have two scripts, one calling the other with via an include. The script that is included contains a variable, a function and a call to that function. The variable needs to...
2
by: Bit byte | last post by:
What's wrong with this: //file1.h Class A { public: A(){i=1;} ~A(){;} void doThis(void){;} void doThat(void){;}
1
pbmods
by: pbmods | last post by:
VARIABLE SCOPE IN JAVASCRIPT LEVEL: BEGINNER/INTERMEDIATE (INTERMEDIATE STUFF IN ) PREREQS: VARIABLES First off, what the heck is 'scope' (the kind that doesn't help kill the germs that cause...
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
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
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
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
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,...
0
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...

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.