error in ASP code

Hi,

I磛e the following error:

Sun ONE ASP JavaScript runtime (0x800A01B6)

Object doesn't support this property or method

/index2.asp, line 30

The line 30 is:

<div id="MidleBoX"> <% response.redirect ("http://www.yahoo.com"); %> </div>

The idea is find a solution for the code in line 32 to migrate from iis:

<% Server.Execute(Request.QueryString('mod')+".asp"); %></div>

The include sentence not work for me.

The complete code is:

<%@LANGUAGE="JAVASCRIPT"%>

<% if (String(Request.QueryString('lng')) != "undefined") {

lng = Request.QueryString('lng');

}else{

lng = "eng";

} %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="-1">

<title>Casas del Toqui</title>

<link href="code/nu.css" rel="stylesheet" type="text/css">

</head>

<script language="javascript" type="text/javascript" src="code/nu.js" ></script>

<body>

<a name="up"></a>

<div align="center">

<div id="TopBoX">

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v ersion=6,0,29,0" width="760" height="300">

<param name="movie" value="swf/main.swf?lng=<%= lng %>">

<param name=quality value=high>

<param name="BGCOLOR" value="#000000">

<embed src="swf/main.swf?lng=<%= lng %>" width="760" height="300" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Ver sion=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#000000"></embed>

</object>

</div>

<% if (String(Request.QueryString('mod')) != "undefinEd") { %>

<div id="MidleBoX"> <% response.redirect ("http://www.yahoo.com"); %> </div>

'

'<% Server.Execute(Request.QueryString('mod')+".asp"); %></div>

<% } %>

<div id="FootBoX">

<table border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="50%" align="left" valign="bottom">

<% if (lng=='eng' || lng=='goeng'){ %>

<strong><a href="http://www.casasdeltoqui.cl/index.asp?lng=goeng" target="_self">HOME</a> <a href="#up">?UP</a> <a href="http://www.casasdeltoqui.cl/index.asp?mod=eng_contactenos&lng=goeng" target="_self">?CONTACT US</a>

<a href="http://www.larose-trintaudon.com/" target="_blank">Larose-Trintaudon.com</a></strong>

<% }else{ %>

<strong><a href="http://www.casasdeltoqui.cl/index.asp?lng=goesp" target="_self">HOME</a> <a href="#up">?ARRIBA</a> <a href="http://www.casasdeltoqui.cl/index.asp?mod=esp_contactenos&lng=goesp" target="_self">?CONTACTO</a>

<a href="http://www.larose-trintaudon.com/" target="_blank">Larose-Trintaudon.com</a></strong>

<% } %>

</td>

<td width="50%" align="right"><div id="div">Fundo Santa Anita de Totihue, Requ韓oa, VI Region - Chile

Tel.:(56 72) 32 18 70Tel./Fax: (56 72) 55 11 97</div>

</td>

</tr>

</table>

</div>

</div>

</body>

</html>

[3826 byte] By [LuisGalaza] at [2007-11-27 6:51:10]
# 1
Hi,Hmm why are you mixing c/javascript and asp coding? Does that really work.I've not tested it and maybe I am wrong but {} and ; are not asp syntax.if ...... thenend ifDuncan
Duncan_Berrimana at 2007-7-12 18:25:26 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

Duncan:

I've modifying a existing code.

I fin a "temporary" solution: the problem is change Server.Execute for Response.Redirect ... with capitals R's.

Silly, not?

But in not the finbal solution, but the style is lost. I Think solution is to use <! include> but don't works.

LuisGalaza at 2007-7-12 18:25:26 > top of Java-index,Web & Directory Servers,Web Servers...