Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 22nd, 2003, 12:09 PM
Authorized User
 
Join Date: Jun 2003
Location: Stockton, CA, USA.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default "DbPool" undefined error.

I get the error

"Microsoft JScript runtime (0x800A1391)
'strUnique' is undefined"

when I run the following code:

Inside the first file, named index.asp:


Inside "filename1.asp":
<script runat="server" language="JScript"
type="text/javascript">
displayName = Request.ServerVariables("SCRIPT_NAME");
strUnique = "Hits" + displayName;
// Here, strUnique is clearly defined.
Server.Execute("filename2.asp");
// Here, strUnique should be passed to filename2, because
I am using server.execute.
</script>

Inside "finename2.asp":
<script runat="server" language="JScript"
type="text/javascript">
Application(WhichPageHits) = Application(strUnique)
// Here is where the error message is saying that
strUnique is undefined. This can be true only if it was
not passed from the filename1.asp, using "server.execute
()".
</script>

Note: I have already tried using Server-side include on the second step.


Could it be that the variable was not passed because
filename2.asp was called through the sequence:
index.asp used Server-side include to call filename1.asp.
filename1.asp used server.execute to call filename2.asp.
???


Daniel Hutchins
Woodbridge, CA
http://www.finehomemadesoap.com
__________________
Daniel Hutchins
Stockton, CA
http://www.finehomemadesoap.com
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
undefined offset error trev Beginning PHP 9 January 24th, 2007 03:41 AM
Undefined Index Error rit01 Beginning PHP 0 March 1st, 2006 09:03 AM
Undefined Function Error arimakidd Beginning PHP 2 November 10th, 2005 01:54 AM
Undefined Variable: Error jjmancini Beginning PHP 2 July 27th, 2004 01:38 AM
"DbPool" undefined error. danielh Classic ASP Basics 0 June 22nd, 2003 12:06 PM



All times are GMT -4. The time now is 02:17 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.