ASP - Hacer funcionar pagina ASP desde HTML

 
Vista:

Hacer funcionar pagina ASP desde HTML

Publicado por Victor Machuca (2 intervenciones) el 02/11/2009 20:44:24
Señores.

Estoy en mis primeros pasos en ASP, tengo una paguina en html, mu simple, que llama a una ASP, la paguina HTML, se despliega en forma correcta, paro al llamar la ASP, me muestra el codigo de la paguina y no la ejecuta, le adjunto el codigo.
Ambos archivos estan en el mismo directorio.

Favor ayudenme que quiero iniciar a funcionar en esta erramienta.

Gracias.

Victor Machuca B.

PAGINA HTML
**********************************
<html>
<head>
<title>
Pagina de logon
</title>
</head>

<body >

<hr>
LOGON <br>
<form name=formu action = resul51.asp method = post>
<table bgcolor = red align = center>
<tr>
<td align =left> <h1> Usuario </td>
<td align =right> <input name= usuario type = text> <br> </td>
</tr>
<tr>
<td align =left> <h1> Clave </td>
<td align =right> <input name= clave type = password> <br> </td>
</tr>
<tr>
<td align =left> <input type = submit name= boton value = "Ingreso"> </td>
<tr>
</table>
</h1>
</form>
</body>
</html>

PAGINA ASP
******************************
<%
session("usuario1") = request.form("usuario")
session("clave1") = request.form("clave")
response.write "<body bgcolor = red >"
response.write "Respuesta a sus datos"
response.write "<hr>"

if request.form("usuario") = "pepe" and request.form("clave") = "password" then
response.write " <p> <blink> SU CLAVE ES CORRECTA </blink> </p> <br>"
response.write "<A HREF= resul52.asp > paguina 3 </a> <br> <br>"
else
response.write "su clave es incorrecta"
end if
response.write "<A HREF= formulario5.html > volver </a>"

%>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder