Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. CodeBehind (HyperlinkColumn)

CodeBehind (HyperlinkColumn)

Scheduled Pinned Locked Moved ASP.NET
questionjavascript
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Daniel Negron
    wrote on last edited by
    #1

    How can I get the value of more then one column? Dim hlc As New HyperLinkColumn hlc.HeaderText = "Airport" hlc.DataNavigateUrlField = "AirportCode" hlc.DataTextField = "AirportCode" hlc.DataNavigateUrlFormatString = "javascript:PostIt('{0}','{1}','" & StringValue & "');" I would like {1} to be the paired data from another column in the datatable. I know that in ASP2 you can do DataNavigateUrlFields = "col1, col2" is there an alternative for asp11?

    M 1 Reply Last reply
    0
    • D Daniel Negron

      How can I get the value of more then one column? Dim hlc As New HyperLinkColumn hlc.HeaderText = "Airport" hlc.DataNavigateUrlField = "AirportCode" hlc.DataTextField = "AirportCode" hlc.DataNavigateUrlFormatString = "javascript:PostIt('{0}','{1}','" & StringValue & "');" I would like {1} to be the paired data from another column in the datatable. I know that in ASP2 you can do DataNavigateUrlFields = "col1, col2" is there an alternative for asp11?

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      In the ASP.NET 1.x, you use the TemplateColumn instead. To populate the value of the column based on multiple columns, you can use the data binding expression. Another option is that you can populate the value from other columns in the event handler of the ItemDataBound event or you can do that using the datasource.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups