Jump to content
Fórum Script Brasil
  • 0

Hyperlink com 2 Campos

Guest --Pr0gr4m4d0r --


Guest --Pr0gr4m4d0r --

como faço pra apresentar, concatenar 2 campos num mesmo hyperlink? sendo q o segundo deve estar dentro de parênteses

meu código está assim:

Dim strCampo(0) As String
strCampo(0) = "campo1"
strCampo(1) = "campo2"

Dim hlf As New HyperLinkField
[color="#FF0000"]hlf.DataTextField = "campo1" & "(" & "campo2" & ")"[/color] 'aqui dá erro!!!
hlf.DataNavigateUrlFields = strCampo
hlf.DataNavigateUrlFormatString = "~/pagina1.aspx?param1={0}¶m2={1}"

gridview1.DataSource = ds.Tables("tabela1")

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...