p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_databases thread: Re: Active Server Pages error 'ASP 0138' ...?


Message #1 by santhi_maadhaven@y... on Thu, 16 May 2002 07:35:28
Hi,
    Maybe u have placed script within script.I faced the same error when i 
placed my script inside another script.Like this

<script language="javascript">
<script language="javascript">
</script>
</script>
   You cannot nest script,so close the script tag before opening other.
Then u won't get any error.

Regards,
santhi
Message #2 by "Jeroen Diderik" <jeroen@i...> on Thu, 16 May 2002 10:36:04 +0200
Hi, read this, it will explain why this happens:

http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/dnmind
9
9/html/geek1199.asp

Gr,

Jeroen Diderik


-----Original Message-----
From: Chirag Shah [mailto:chiragiit@y...]
Sent: Wednesday, May 15, 2002 11:15 PM
To: ASP Databases
Subject: [asp_databases] Active Server Pages error 'ASP 0138' ...?


This is really perplexing I am getting this error

Active Server Pages error 'ASP 0138'

Nested Script Block

/html/resource_center/rentvsbuy.asp, line 26

A script block cannot be placed inside another script block.

The line below is evil and its javaascript line breking my ASP code... (
There is no ASP code in this page..but why this giving me error)
---------------------------------------------------------------
document.write("<SCRIPT LANGUAGE=3D'JavaScript'
SRC=3D'../../hiergenproperties.js'><\/SCRIPT>");
----------------------------------------------
I found  solutions to fix  this (below) but any one has a genuine reason

for this ..(Ken Schafer..?)

document.write("<" +"SCRIPT LANGUAGE=3D'JavaScript'
SRC=3D'../../hiergenproperties.js'><\/SCRIPT>");




Message #3 by "Chirag Shah" <chiragiit@y...> on Wed, 15 May 2002 21:14:49
This is really perplexing I am getting this error

Active Server Pages error 'ASP 0138' 

Nested Script Block 

/html/resource_center/rentvsbuy.asp, line 26 

A script block cannot be placed inside another script block. 

The line below is evil and its javaascript line breking my ASP code...
( There is no ASP code in this page..but why this giving me error)
---------------------------------------------------------------
document.write("<SCRIPT LANGUAGE='JavaScript' 
SRC='../../hiergenproperties.js'><\/SCRIPT>");
----------------------------------------------
I found  solutions to fix  this (below) but any one has a genuine reason 
for this ..(Ken Schafer..?)

document.write("<" +"SCRIPT LANGUAGE='JavaScript' 
SRC='../../hiergenproperties.js'><\/SCRIPT>");




  Return to Index