Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/02/2003, 20:57
Calk_ventura
 
Fecha de Ingreso: febrero-2003
Ubicación: México, D.F.
Mensajes: 2
Antigüedad: 22 años, 3 meses
Puntos: 0
Impresion Variables(Response.Write)

He usado sin problemas el objeto Response.Write, cuando quiero mandar UNA variable a flash. Pero tengo problemas con el comando Response.Write ,cuando quiero mandar MAS DE UNA variable, necesito pasar variables ASP a una película Flash, al usar el código:

<%@Language="VBScript"%>
<%
Option Explicit
Dim oRS, oConn, strSQL , results , aresults
Set oConn = Server.CreateObject("ADODB.Connection")
Set oRS = Server.CreateObject("ADODB.Recordset")
oConn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("ex1-emails.mdb")
If UCase(Request("NameLast")) = "ALL" Then
strSQL = "SELECT * FROM Emails"
Else
strSQL = "SELECT * FROM Emails WHERE NameLast LIKE '" & Request("NameLast") & "'"
End If
oRS.Open strSQL, oConn, 2, 3
If oRS.EOF Then
Response.Write "success=False"
Else
results = results & oRS("NameFirst")
aresults = aresults & oRS("EmailAddress")
Response.Write "results="
End If

oRS.Close
Set oRS = Nothing
oConn.Close
Set oConn = Nothing
Response.Write Server.URLEncode (results)
%>

Solamente me manda la variable "results", he intentado de diversas formas mandar también "aresults" , pero las escribe juntas. Agradecería muchísimo su valiosa orientación.