internetworkers AT lists.ibiblio.org
Subject: Internetworkers: http://www.ibiblio.org/internetworkers/
List archive
RE: [internetworkers] ASP/access works locally but not on ISP
- From: "Kurt Schlatzer" <kurt AT kurtschlatzer.com>
- To: "Internetworkers: http://www.ibiblio.org/internetworkers/" <internetworkers AT lists.ibiblio.org>
- Subject: RE: [internetworkers] ASP/access works locally but not on ISP
- Date: Thu, 4 Dec 2003 12:40:08 -0500
internetworkers-bounces AT lists.ibiblio.org wrote:
> It tells me "The page cannot be displayed".
> Is that still javascript or is it VBscript?
>
> I simply substituted:
>
> <%@LANGUAGE="javascript"%>
> <%
> Dim DBConn, Recordset1, SQLQuery
> Set DBConn = server.createobject ("ADODB.Connection") DBConn.open
> "DSN=receitas;" Recordset1 = Server.CreateObject("ADODB.Recordset")
> SQLQuery = "SELECT * FROM tb_tipo ORDER BY tipo_nome"
> Recordset1.Open SQLQuery, DBConn,1,2
> %>
>
>
> for
>
>
> <%@LANGUAGE="javascript"%>
> <%
> Dim DBConn, Recordset1, SQLQuery
> Set DBConn = server.createobject ("ADODB.Connection") DBConn.open
> "DSN=receitas;" Recordset1 = Server.CreateObject("ADODB.Recordset")
> SQLQuery = "SELECT * FROM tb_tipo ORDER BY tipo_nome"
> Recordset1.Open SQLQuery, DBConn,1,2
> %>
>
> And yes, "receitas" is tha name of my DSN.
>
> Thanks again!
> -Marcia
Marcia,
You have to use <%@LANGUAGE="VBScript"%> You can't use Javascript to perform
the server-side tasks. Make sure your pages have the .asp suffix.
If you want to use Javascript in your pages, do it this way:
<script language="JavaScript" type="text/JavaScript">
your Javascript code here
</script>
<noscript>
your no script code here
</noscript>
Before you go any further, I recommend you spend a few dollars at the
bookstore or a few days here:
http://www.aspin.com/
Kurt
www.kurtschlatzer.com
-
[internetworkers] ASP/access works locally but not on ISP,
Marcia, 12/04/2003
-
RE: [internetworkers] ASP/access works locally but not on ISP,
Kurt Schlatzer, 12/04/2003
-
RE: [internetworkers] ASP/access works locally but not on ISP,
Marcia, 12/04/2003
-
RE: [internetworkers] ASP/access works locally but not on ISP,
Kurt Schlatzer, 12/04/2003
-
Re: [internetworkers] ASP/access works locally but not on ISP,
James Manning, 12/04/2003
- RE: [internetworkers] ASP/access works locally but not on ISP, Kurt Schlatzer, 12/04/2003
- RE: [internetworkers] ASP/access works locally but not on ISP, Marcia, 12/04/2003
-
Re: [internetworkers] ASP/access works locally but not on ISP,
James Manning, 12/04/2003
-
RE: [internetworkers] ASP/access works locally but not on ISP,
Kurt Schlatzer, 12/04/2003
-
RE: [internetworkers] ASP/access works locally but not on ISP,
Marcia, 12/04/2003
-
RE: [internetworkers] ASP/access works locally but not on ISP,
Kurt Schlatzer, 12/04/2003
Archive powered by MHonArc 2.6.24.