Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/12/2003, 09:17
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 23 años, 8 meses
Puntos: 381
No, la forma en la cual declaras el lenguaje es para el cliente.

Para servidor debes pedírselo así

<% @language="vbscript" %>
<html>
<head>
<title>Prueba</title>
</head>

<body bgcolor="#FFFFFF" text="#000000">

<%
dim tbl,oconn,strsql

strsql = "SELECT * FROM articulos where formato like 'cd'"

Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ="&Server.MapPath("maracas.mdb")

Set tbl = Server.CreateObject("ADODB.Recordset")

tbl.Open strsql ,oconn,3,1

While NOT TBL.EOF
Response.Write("Formato = " & TBL("formato") & "<br>")
Response.Write("titulo = " & TBL("titulo") & "<br>")
Response.Write("novedad = " & TBL("novedad") & "<br><br><br>")
TBL.MoveNext
Wend
TBL.Close

oconn.Close

Set oconn = Nothing
Set TBL = Nothing

%>

</body>
</html>