
10/08/2002, 23:13
|
| | Fecha de Ingreso: enero-2002 Ubicación: Perez Zeledon Costa Rica
Mensajes: 1.009
Antigüedad: 23 años, 4 meses Puntos: 11 | |
Re: El IIS debo iniciarlo? o inicia solo. MEdiante un include halo la pagina que tiene:
gsConnect = "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("Items.mdb")
Y funciona en esta, me la presenta bien:
<%
Option explicit
Dim StrConnect
%>
<!--#include file="Conection.asp"-->
<!-- #include file="auctionlib.asp" -->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%
Dim objConn, ObjRs
Dim adOpenForwardOnly, adLockReadOnly, adCmdTable
adOpenForwardOnly = 0
adLockReadOnly = 1
adCmdTable= 2
Set objConn = Server.CreateObject("ADODB.Connection")
Set objRs = Server.CreateObject("ADODB.Recordset")
objConn.Open strConnect
ObjRs.Open "Auctions", objConn, adOpenForwardOnly, adLockReadOnly, adCmdTable
'While Not ObjRs("Cosa") & "<Br>"
While Not ObjRs.EOF
Response.write objRs("itemTitle") & "<Br>"
ObjRs.MoveNext
Wend
ObjRs.Close
ObjConn.Close
Set ObjRs=Nothing
Set ObjConn=Nothing
%>
</body>
</html>
Pero en esta otra pasa una eternidad cargando: |