Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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


Similar Threads
Thread Thread Starter Forum Replies Last Post
undefined offset error trev Beginning PHP 9 January 24th, 2007 04:41 AM
Undefined Index Error rit01 Beginning PHP 0 March 1st, 2006 10:03 AM
Undefined Function Error arimakidd Beginning PHP 2 November 10th, 2005 02: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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.