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. row clickable

row clickable

Scheduled Pinned Locked Moved ASP.NET
5 Posts 4 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.
  • N Offline
    N Offline
    netJP12L
    wrote on last edited by
    #1

    Hi, I have hyperlinks in each of the table rows and user is tranfered to a different page upon clicking. What I would like to have instead is that they click on the row rather than the hyperlink. How could I do it, while still keeping those hyperlinks. Thanks

    M M G 3 Replies Last reply
    0
    • N netJP12L

      Hi, I have hyperlinks in each of the table rows and user is tranfered to a different page upon clicking. What I would like to have instead is that they click on the row rather than the hyperlink. How could I do it, while still keeping those hyperlinks. Thanks

      M Offline
      M Offline
      Morgs Morgan
      wrote on last edited by
      #2

      There other ways you could achieve this but it will mostly revolve around setting an onclick for your row(s). You could call a function javascript way or jQuery way thats ya choice.

      1 Reply Last reply
      0
      • N netJP12L

        Hi, I have hyperlinks in each of the table rows and user is tranfered to a different page upon clicking. What I would like to have instead is that they click on the row rather than the hyperlink. How could I do it, while still keeping those hyperlinks. Thanks

        M Offline
        M Offline
        mneale1
        wrote on last edited by
        #3

        Can you use the onselect action and determine the row you are on and then take the url from link cell in that row and go to that link?

        Brother Miles

        M 1 Reply Last reply
        0
        • N netJP12L

          Hi, I have hyperlinks in each of the table rows and user is tranfered to a different page upon clicking. What I would like to have instead is that they click on the row rather than the hyperlink. How could I do it, while still keeping those hyperlinks. Thanks

          G Offline
          G Offline
          GenJerDan
          wrote on last edited by
          #4

          And, if none of the other ways work, you can make every field the same hyperlink then use CSS to change the appearance so they don't look like hyperlinks. The user will still have to click text, but it won't matter which in the row.

          Just like that old Carly Simon song... "You're so funny, You probably think this joke is about you" My Mu[sic] My Films My Windows Programs, etc.

          1 Reply Last reply
          0
          • M mneale1

            Can you use the onselect action and determine the row you are on and then take the url from link cell in that row and go to that link?

            Brother Miles

            M Offline
            M Offline
            Morgs Morgan
            wrote on last edited by
            #5

            Hi, if you take a look, the tr onclick will take you to the link in the hyperlink below it.

            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