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. Populating ASPX with links

Populating ASPX with links

Scheduled Pinned Locked Moved ASP.NET
questioncsharpdatabase
3 Posts 3 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.
  • J Offline
    J Offline
    jmfekete
    wrote on last edited by
    #1

    Hi, I am grabbing data from a database and displaying it onto ASPX pages. I want to grab the "ID" column and have every ID listed within that table on the aspx page as a link. How can I do that without having to manually create the link myself 400 times? I also use C# to run this website. Any ideas? Thanks! Jane

    T 1 Reply Last reply
    0
    • J jmfekete

      Hi, I am grabbing data from a database and displaying it onto ASPX pages. I want to grab the "ID" column and have every ID listed within that table on the aspx page as a link. How can I do that without having to manually create the link myself 400 times? I also use C# to run this website. Any ideas? Thanks! Jane

      T Offline
      T Offline
      Tad McClellan
      wrote on last edited by
      #2

      Quick way to do it is to program the HTML in the query itself. I.e. Selec '[Click Here](www.codeproject.com?ID=')' FROM Some_Table And then bind that to the grid. A hack for sure but it works.

      L 1 Reply Last reply
      0
      • T Tad McClellan

        Quick way to do it is to program the HTML in the query itself. I.e. Selec '[Click Here](www.codeproject.com?ID=')' FROM Some_Table And then bind that to the grid. A hack for sure but it works.

        L Offline
        L Offline
        Leather99
        wrote on last edited by
        #3

        If you are using the Datagrid then you simply need to set the column up as a hyperlink column.


        MCSD(VB6/SQL7) MCAD(C#/SQL2000) MCSD(C#/SQL2000)

        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