AYUDA CON LINKS "POR FAVOR"
Publicado por MARCEMM (3 intervenciones) el 07/05/2003 22:12:51
Tengo el sig Problema :
Tengo un programa A, que despliega en una tabla con nombres de Artistas musicales.
al hacer Click tendria que mostrarme en otra pagina el detalle de el artista seleccionado, Pero no lo Hace.
es decir no logro pasar la variable con el dato que clikeo
el codigo que tengo es el siguiente
programa inacial
<%@language="VBScript"%>
<html>
<head>
<title></title>
</head>
<body bgcolor="#E4E4E4">
<%
Public VVartista
Vari=session("Artista")
set conec=Server.createobject("ADODB.CONNECTION")
set Tartista=Server.createobject("ADODB.RECORDSET")
Vsql="Select * from Consulta3 where Consulta3.gene like '%" & Vari & "%'"
Tartista.open Vsql, "DSN=BaseDiscos"
if not Tartista.eof then
do while not Tartista.eof%>
<div align="center">
<center>
<table border="1" width="300" bgcolor="#FFFFFF" style="font-size: 8 pt" bordercolorlight="#C0C0C0" bordercolordark="#E4E4E4" height="21">
<tr>
<td><a href="Pag3.asp?<%VVartista=Tartista("nombre")%>"><%=Tartista("nombre") %></a></td>
</table>
</center>
</div>
<% Tartista.movenext
Loop
else
msg="Artista Inexistente"
end if
Tartista.close
%>
</body>
</html>
en el segundo programa, atrapo la Variable de esta forma
<% Vari=Request.QueryString("VVartista")
pero no me da resultado%
Tengo un programa A, que despliega en una tabla con nombres de Artistas musicales.
al hacer Click tendria que mostrarme en otra pagina el detalle de el artista seleccionado, Pero no lo Hace.
es decir no logro pasar la variable con el dato que clikeo
el codigo que tengo es el siguiente
programa inacial
<%@language="VBScript"%>
<html>
<head>
<title></title>
</head>
<body bgcolor="#E4E4E4">
<%
Public VVartista
Vari=session("Artista")
set conec=Server.createobject("ADODB.CONNECTION")
set Tartista=Server.createobject("ADODB.RECORDSET")
Vsql="Select * from Consulta3 where Consulta3.gene like '%" & Vari & "%'"
Tartista.open Vsql, "DSN=BaseDiscos"
if not Tartista.eof then
do while not Tartista.eof%>
<div align="center">
<center>
<table border="1" width="300" bgcolor="#FFFFFF" style="font-size: 8 pt" bordercolorlight="#C0C0C0" bordercolordark="#E4E4E4" height="21">
<tr>
<td><a href="Pag3.asp?<%VVartista=Tartista("nombre")%>"><%=Tartista("nombre") %></a></td>
</table>
</center>
</div>
<% Tartista.movenext
Loop
else
msg="Artista Inexistente"
end if
Tartista.close
%>
</body>
</html>
en el segundo programa, atrapo la Variable de esta forma
<% Vari=Request.QueryString("VVartista")
pero no me da resultado%
Valora esta pregunta
0