Foros del Web » Programando para Internet » ASP Clásico »

Mi navegador no abre los asp

Estas en el tema de Mi navegador no abre los asp en el foro de ASP Clásico en Foros del Web. Estoy creando una web con Dreamweaver MX la vinculo con una BD Access usando el servidor local IIS pero quando previsualizo con mozilla las paginas ...
  #1 (permalink)  
Antiguo 05/12/2008, 02:12
 
Fecha de Ingreso: noviembre-2008
Mensajes: 22
Antigüedad: 16 años, 6 meses
Puntos: 0
Mi navegador no abre los asp

Estoy creando una web con Dreamweaver MX la vinculo con una BD Access usando el servidor local IIS pero quando previsualizo con mozilla las paginas asp mi navegador parece como si no interpretara el código fuente me sale el navegador con este código:

%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/Contenidos.asp" -->
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername=CStr(Request.Form("Usuario"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization=""
MM_redirectLoginSuccess="login_spa/index_login.asp"
MM_redirectLoginFailed="log_error.htm"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_Contenidos_STRING
MM_rsUser.Source = "SELECT Usuario, Password"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM Tabla_clientes WHERE Usuario='" & Replace(MM_valUsername,"'","''") &"' AND Password='" & Replace(Request.Form("Password"),"'","''") & "'"
MM_rsUser.CursorType = 0
MM_rsUser.CursorLocation = 2
MM_rsUser.LockType = 3
MM_rsUser.Open
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization ).Value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And false Then
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Cap&ccedil;alera</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body,td,th {
font-family: Century Gothic;
color: #FFFFFF;
}
body {
background-color: #FF6600;
}
a:link {
color: #FFFFFF;
}
a:visited {
color: #FFFFFF;
}
a:hover {
color: #FFFFFF;
}
a:active {
color: #FFFFFF;
}
.Estilo3 {font-size: 11px}
.Estilo4 {color: #000000}
.Estilo5 {font-size: 11px; color: #000000; }
-->
</style></head>

<body>
<table width="764" height="88" border="0">
<tr>
<td width="509" height="84"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="509" height="84">
<param name="movie" value="Imatges/Cartell.swf">
<param name="quality" value="high"><param name="LOOP" value="false">
<embed src="Imatges/Cartell.swf" width="509" height="84" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object></td>
<td width="245"><form ACTION="<%=MM_LoginAction%>" method="POST" name="Form_login" id="Form_login">
<div align="center">
<table width="233" border="1" bordercolor="#CCCCCC" bgcolor="#999999">
<tr>
<td width="63" bgcolor="#999999"><div align="right" class="Estilo3 Estilo4">User:</div></td>
<td width="154"><span class="Estilo3">
<input name="Usuario" type="text" id="Usuario">
</span></td>
</tr>
<tr>
<td bgcolor="#999999"><div align="right" class="Estilo5">Password:</div></td>
<td><span class="Estilo3">
<input name="Password" type="password" id="Password" maxlength="8">
</span></td>
</tr>
<tr>
<td colspan="2" bgcolor="#999999"><div align="center">
<input name="Acceder" type="submit" id="Acceder" value="Login">
</div></td>
</tr>
</table>
</div>
</form></td>
</tr>
</table>
</body>
</html>
Necesito ayuda estoy muy bloqueado.
  #2 (permalink)  
Antiguo 05/12/2008, 09:19
Avatar de AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 24 años, 2 meses
Puntos: 535
Respuesta: Mi navegador no abre los asp

Y cómo accedés al archivo desde el navegador? Con http://localhost/archivo.asp o file:///C:/carpeta/archivo.asp?

La primer forma es la correcta, dado que el archivo debe ser interpretado por el servidor web (IIS)
__________________
...___...
  #3 (permalink)  
Antiguo 07/12/2008, 08:06
 
Fecha de Ingreso: noviembre-2008
Mensajes: 22
Antigüedad: 16 años, 6 meses
Puntos: 0
Respuesta: Mi navegador no abre los asp

Accedo con la primera opcion con localhost
  #4 (permalink)  
Antiguo 08/12/2008, 17:06
 
Fecha de Ingreso: diciembre-2008
Ubicación: Madrid
Mensajes: 78
Antigüedad: 16 años, 5 meses
Puntos: 2
Respuesta: Mi navegador no abre los asp

¿Qué versión de IIS utilizas?
¿Tienes Apache instalado en la misma maquina?
  #5 (permalink)  
Antiguo 09/12/2008, 12:14
 
Fecha de Ingreso: noviembre-2008
Mensajes: 22
Antigüedad: 16 años, 6 meses
Puntos: 0
Respuesta: Mi navegador no abre los asp

No tengo apache instalado la version IIS és la V5.1
Gracias por la ayuda
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:44.