CONSULTA
Publicado por KIKILLO (3 intervenciones) el 20/03/2017 22:16:54
tengo el siguiente codigo de ejemplo.
lo ejecuto en mi pc como http://localhost/pagina1.asp y corre normal, pero cuando muestra a la vez me sale el mensaje:
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.
tengo entendido que puede ser algun error de programa....o que puede ser.....ayuda y gracias.
lo ejecuto en mi pc como http://localhost/pagina1.asp y corre normal, pero cuando muestra a la vez me sale el mensaje:
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.
tengo entendido que puede ser algun error de programa....o que puede ser.....ayuda y gracias.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<%@ Language=VBScript%>
<%
Dim Ruta, oConn, oRs
Ruta = "e:\fasmot\fasmot.DBC"
Set oConn = CREATEOBJECT("ADODB.Connection")
Set oRs = CREATEOBJECT("ADODB.RecordSet")
oConn.Open("Provider=VFPOLEDB.1;Data Source=" & Ruta)
oRs.Open "SELECT Id,nombres FROM datos", oConn
%>
<html>
<body>
<h3>Listado de Asociados al: <% =Now() %></h3>
<table border=1 width=100% cellspacing="1" cellpadding="2">
<tr>
<% For i = 0 to oRS.Fields.Count - 1 %>
<th><% = UCASE(oRS(i).Name) %></th>
<% Next %>
</tr>
<% Do While Not oRS.EOF %>
<tr bgcolor="#FFFFFF">
<% For i = 0 to oRS.Fields.Count - 1 %>
<td><% = oRS(i) %></td>
<% Next %>
</tr>
<%
oRs.MoveNext
Loop
oRs.Close
oConn.Close
Set oRs = fasmot
Set oConn = fasmot
%>
</table>
</body>
</html>
Valora esta pregunta


0