Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/03/2007, 17:13
LinosINK
 
Fecha de Ingreso: diciembre-2004
Mensajes: 190
Antigüedad: 20 años, 4 meses
Puntos: 0
al intentar pasar la variable me da error

Hola a todos, tengo el siguiente código:

Código:
strText=rs.fields("Contenido")
CuantosCaracteres = Len(strText)
if CuantosCaracteres > 110 then
strText = left(strText,100) & "... "_
& "<span class=""txt_granate"">[</span><a href=""http://www.dominio.com/PRUEBA/es/noticias.asp"" class=""txt_granate"" title=""Leer la noticia entera"">leer+</a><span class=""txt_granate"">]</span>"
end if
estoy intentando en la línea del href pasarle una variable y cuando lo hago siempre me dice que se esperaba un final de instrucción y no sé que hago mal, lo que intento es:

Código:
strText=rs.fields("Contenido")			
CuantosCaracteres = Len(strText)
if CuantosCaracteres > 110 then
strText = left(strText,100) & "... "_
& "<span class=""txt_granate"">[</span><a href=""http://www.dominio.com/PRUEBA/es/noticias.asp?H="Response.Write rs.Fields ("ID")""" class=""txt_granate"" title=""Leer la noticia entera"">leer+</a><span class=""txt_granate"">]</span>"
end if
Gracias.
__________________
Huevos fritos con jamon, te los comes cuando quieras pero folla siempre con condón.