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. asp:HyperLinkField inside Gridview in Ajax:Update panel

asp:HyperLinkField inside Gridview in Ajax:Update panel

Scheduled Pinned Locked Moved ASP.NET
helpannouncement
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.
  • S Offline
    S Offline
    sowmya k
    wrote on last edited by
    #1

    I have a gridview with the HyperLinkField. When I click on the HyperLink in the Gridview The Content of the row must be populated in the fields above the Gridview. Here the DataNavigateUrlFormatString is the same page. Currently the page loading with the contents of selected row from the gridview,but Postback is occuring. I don't want to refresh the page, When i click on the Hyperlink. Please help me out. Thanks in Advance, Sowmya K

    D 1 Reply Last reply
    0
    • S sowmya k

      I have a gridview with the HyperLinkField. When I click on the HyperLink in the Gridview The Content of the row must be populated in the fields above the Gridview. Here the DataNavigateUrlFormatString is the same page. Currently the page loading with the contents of selected row from the gridview,but Postback is occuring. I don't want to refresh the page, When i click on the Hyperlink. Please help me out. Thanks in Advance, Sowmya K

      D Offline
      D Offline
      Dominic Goulet
      wrote on last edited by
      #2

      Hello, I'm not sure I understand your question, but at least I understand a part of it. For the " don't want to refresh the page, When i click on the Hyperlink" question, here is the answer : The only way to not refresh the page on a hyperlink click is to call some client side action, such as javascript. For the rest of your question, I guess you want to copy the current row to the fields you might have created upside from your gridview. To achieve that, you could use a javascript method (so there will be no page refresh) and copy the data into the fields. This could be a simple call on the hyperlink such as href="javascript:SomeMethodThatCopyDataToFields('data1','data2');" Cheers

      ______________________ Dominic Goulet FroggedSoft My blog

      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