Flash y Asp

Hola!, oye mira tengo un problemilla...Tengo un sistema hecho en asp, y lo que quiero es transformar los formularios de asp en formularios hechos en flash...No se si haya alguna manera de hacerlo...Comoquiera aqui te mando el codigo del login de la pagina (que es por donde quiero empezar), toma los datos del usuario de una base de datos de access:
<%@ Language=VBScript %>
<%Response.Expires = 0%>
<%
vac = false
val = 0
cve = Request.Form("clave")
pwd = Request.Form("password")
if Len(Request.Form("clave")) < 1 then Response.Redirect "default.htm" end if
if Len(Request.Form("password")) < 1 then Response.Redirect "default.htm" end if
Session.Timeout = 600
Session("MyCon") = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="& Server.MapPath("../db/santre.mdb")
Set oCon = Server.CreateObject("ADODB.Connection")
oCon.Open Session("MyCon")
Set oRec = Server.CreateObject("ADODB.Recordset")
sSQL = "SELECT * FROM Socios WHERE Cvesoc ='" & cve & "'"
sSQL = sSQL & "AND Passoc ='" & pwd & "'"
oRec.Open sSQL, oCon
if oRec.BOF And oRec.EOF then Response.Redirect "default.htm" end if
Session("NomSoc") = oRec("NomSoc")
Session("idsoc") = oRec("idsoc")
Fecha = Date()
Hora = Left(Time(),10)
soc = Left(Session("NomSoc"),25)
acti = "Entro al Sistema"
sSQL = "INSERT INTO Bitaco (FecMov,Hora,Socio,Activi) "
sSQL = sSQL & "VALUES ('"
sSQL = sSQL & Fecha & "', '"
sSQL = sSQL & Hora & "', '"
sSQL = sSQL & soc & "', '"
sSQL = sSQL & acti & "' )"
oCon.Execute sSQL
oRec.Close
Set oRec = Nothing
oCon.Close
Set oCon = Nothing
Response.Redirect "ingreso1.asp" %>
DE ANTEMANO MUCHAS GRACIAS...
Respuesta
1
Utilizar formularios flash es igual que hacerlo en htmlm el tratamiento es el mismo de envio de variables, yo te aconsejo que utilices el objeto LoadVars es muy sencillo lee en la ayuda y si tines problemas o no entiendes escribeme para enviarte un ejm.
AAA! Se me olvidava lo mas importante, ese archivo se llama ingreso.asp, pero el archivo real en donde escribes el username y password contiene el siguiente codigo (este archivo se llama default.htm):
<html>
<head>
<meta http-equiv="Content-Language" content="es-mx">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Santre</title>
</head>
<body topmargin="0" leftmargin="0">
<div align="left">
<table border="0" width="100%" height="110" cellspacing="0" cellpadding="0">
<tr>
<td width="200" height="110" valign="top" align="left"> </td>
<td height="110"> </td>
</tr>
</table>
</div>
<br>
<br>
<div align="center">
<center>
<table border="1" height="1" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" cellspacing="4">
<tr bgcolor="#CCCCCC">
<td height="15" colspan="3" align="left" valign="top" nowrap bordercolorlight="#000000"><font color="#000080" face="Arial" size="3">Bienvenidos
al Sistema Integral Administrativo</font></td>
</tr>
<tr>
<td height="71" rowspan="3" valign="top" align="right"> </td>
<td height="15" align="center" bgcolor="#D7D7EF" bordercolorlight="#000000" bordercolordark="#FFFFFF"><b><font face="Arial" size="2" color="#000080">Usuario</font></b></td>
<td height="1" rowspan="5" valign="top" align="left"></td>
</tr>
<FORM name=datos action=ingreso.asp method=post>
<tr>
<td height="13" align="center" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<input type="text" name=clave size=15 >
<Script language="JavaScript">
<!--
document.datos.clave.focus();
//-->
</script> </td>
</tr>
<tr>
<td height="12" align="center" bgcolor="#D7D7EF" bordercolorlight="#000000" bordercolordark="#FFFFFF"><b><font face="Arial" size="2" color="#000080">Password</font></b></td>
</tr>
<tr>
<td height="1" rowspan="2" valign="top" align="left"> </td>
<td height="4" align="center" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<INPUT type="password" size=15 name=password>
</td>
</tr>
<tr>
<td height="1" align="center">
<INPUT name=submit type=submit value="Ingresar" style="width: 100; height: 25; position: relative; background-image: url('fdb.jpg'); font-family: Arial; color: #000080; font-size: 10 pt; font-weight: bold">
</td>
</tr>
</form>
</table>
</center>
</div>
</body>
</html>
Ya pude hacer que flash enviara y recogiera variables y datos de la base de datos, lo unico que no puedo hacer es que flash me ponga los datos en su componente datagrid (al igual que lo hace asp y html), espero puedas ayudarme...saludos
llenar el dataGrid es sencillo, pero qtienes que tener en cuenta algunos parametros, en esta direccion
http://www.cristalab.com/tutoriales/46/tutorial_de_uso_del_componente_datagrid_de_flash_mx_2004
hay un excelente tutorial de como usarlo, cualquier cosa me avisas saludos.

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas