473,545 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2789
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******** ******@tk2msftn gp13.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******* *******@tk2msft ngp13.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
16052
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 than storing in a database or session (which just gets saved to disk anyway). Id like to have my commonly used application variables in memory. Is...
6
3382
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 (ini.inc) that declares a constant DAY_NUM. A little later in the file, ini.inc includes another file (b_data.inc) that tries to use DAY_NUM. I'm...
3
2918
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" --> : </body>
4
8170
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 How should i Proceed ?? pls help me
2
2549
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" file. (I.e., the original file sets VAR_location equal to a directory path, then #includes the file in which the above line appears). I can #echo...
6
1571
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
1461
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 be accessible to the function, so I declare it having a global scope. Then I execute the function, which should echo the value of the variable....
2
1687
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
25629
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 bad breath)? Scope describes the context in which a variable can be used. For example, if a variable's scope is a certain function, then that...
0
7411
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...
0
7669
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. ...
0
7926
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...
0
7773
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4962
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...
0
3468
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...
0
3450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
722
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...

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.