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. HyperLink in GridView

HyperLink in GridView

Scheduled Pinned Locked Moved ASP.NET
questionhelp
3 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.
  • M Offline
    M Offline
    Mohammed Elkholy
    wrote on last edited by
    #1

    I add hyperlink in gridview and i pass the navigationURL for this hyperlink but i want to send the rowindex of the gridview in session when i click this hyperlink HOW CAN I DO THIS? thanks for help

    MD_NADA

    B 1 Reply Last reply
    0
    • M Mohammed Elkholy

      I add hyperlink in gridview and i pass the navigationURL for this hyperlink but i want to send the rowindex of the gridview in session when i click this hyperlink HOW CAN I DO THIS? thanks for help

      MD_NADA

      B Offline
      B Offline
      BORN again
      wrote on last edited by
      #2

      Hi MD_Nada, Can you post your navigationURL that you are passing in the hyperlink? In the meantime: You can send your rowindex id in the URL string itself. For eg: you want to access myhyperlinkpage.aspx your URL string will be - http://xyz/myhyperlinkpage.aspx?id={0} , this will pass the id or the rowindex of that row. Also, do not forget to add your id or primary key of your table in the 'DataKeyNames' property of your gridview. If this explanation is not too clear, kindly post your URL.

      Aartee. ...HE is watching Us All!

      M 1 Reply Last reply
      0
      • B BORN again

        Hi MD_Nada, Can you post your navigationURL that you are passing in the hyperlink? In the meantime: You can send your rowindex id in the URL string itself. For eg: you want to access myhyperlinkpage.aspx your URL string will be - http://xyz/myhyperlinkpage.aspx?id={0} , this will pass the id or the rowindex of that row. Also, do not forget to add your id or primary key of your table in the 'DataKeyNames' property of your gridview. If this explanation is not too clear, kindly post your URL.

        Aartee. ...HE is watching Us All!

        M Offline
        M Offline
        Mohammed Elkholy
        wrote on last edited by
        #3

        thanks for ur help

        MD_NADA

        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