Código:
el problema lo tengo en esta linea If abrir="si" then%>while not res.eof %> <tr> <td width="2%" valign="top"><strong>P:</strong></td> <td width="98%" valign="top"> <a href="faq.asp?abrir=<%=abrir%>&swaux=<%=i%>&categoria=<%=categoria%>"><%=res("pregunta")%></a> </td> </tr> <% If abrir="si" then%> <tr> <td valign="top"><strong>R:</strong></td> <td valign="top"><%= res("respuesta") %></td> </tr> <%end if res.movenext wend end if %>
si entra ahi me abre todos TR como registros tenga y lo que yo quiero es que se habra el corresppondiente al que cliquié, me explico
cuando entro sale todo asi
P: Pregunta uno?
P: Pregunta Dos?
P: Pregunta Tres?
si le hago click a la pregunta 2 debia aparecer lo siguiente
P: Pregunta uno?
P: Pregunta dos?
R: Respuesta dos
P: Pregunta 3
osea que a la linea If abrir="si" then%> deberia agregarle otro parametro pero he intentado ene cosas y no me sale.. como lo puedo hacer señores? desde ya gracias