![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/10/2006, 04:23
|
![Avatar de Bravenap](http://static.forosdelweb.com/customavatars/avatar27366_1.gif) | | | Fecha de Ingreso: noviembre-2002 Ubicación: Los Arroyos, El Escorial, Madrid
Mensajes: 2.084
Antigüedad: 22 años, 2 meses Puntos: 4 | |
Hyperlink con mismo texto que enlace Quizás sea un poco lioso, pero con el código se entenderá mejor:
Código:
Session("NuevoDocumento") = "~/Documento.aspx?id=8"
............
If Not Session("NuevoDocumento") Is Nothing Then
Me.lblMensaje.Text = "El nuevo documento está disponible en: "
Dim hl As New HyperLink
hl.NavigateUrl = Session("NuevoDocumento")
hl.Target = "_blank"
' Debería aparecer http://www.dominio.com/Documentos.aspx?id=8
' pero me sale el texto tal cual, es decir, ~/Documentos.aspx?id=8
hl.Text = ....
Me.pnlMensaje.Controls.Add(hl)
Session("NuevoDocumento") = Nothing
End If
Gracias y un saludo.
__________________ ¡¡NO A LA GUERRA!!
Si ponemos a nuestros mensajes títulos adecuados, la gente se animará más a abrirlos y resultarán más útiles en las busquedas. ¡No a los ayuuudaaa, urgenteee y similares! |