Ver Mensaje Individual
  #11 (permalink)  
Antiguo 17/03/2007, 21:26
Avatar de Shiryu_Libra
Shiryu_Libra
Colaborador
 
Fecha de Ingreso: febrero-2007
Ubicación: Cantando "Screenager" en "Kirafa Kaput"
Mensajes: 3.614
Antigüedad: 18 años, 2 meses
Puntos: 88
Re: Hacer la siguiente redireccion al validar

con tu permiso

set oConn=Server.CreateObject("ADODB.Connection")
oConn.Open "xxxxxxxx"
SQL="SELECT Id, Login, Password, URL FROM " & _
"xxx.prueba WHERE (Login='"&nombre&"' AND Password='"&password&"');"

set rs=oConn.Execute(SQL)

if rs.EOF then
Session("ID")=Cint(0)
Response.Redirect("error.asp")
else

Session("ID")=CInt(rs.Fields("Id"))

pagina = RS.fields("URL").value
Response.Redirect(pagina)"


end if

creo que asi deberia funcionar compañero