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. How to get TargetControlID from gridview to Ajax modalPopupExtender?

How to get TargetControlID from gridview to Ajax modalPopupExtender?

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
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.
  • D Offline
    D Offline
    Dhyanga
    wrote on last edited by
    #1

    Hi, I have a gridview showing list of data . When I select one of the row in the gridview, I would like to get panal (say Panel1) to be popup. I used the Ajax ModalPopupExtender but I don't know what should be the value in TargetControlID ? Please help.

    suchita

    A P 2 Replies Last reply
    0
    • D Dhyanga

      Hi, I have a gridview showing list of data . When I select one of the row in the gridview, I would like to get panal (say Panel1) to be popup. I used the Ajax ModalPopupExtender but I don't know what should be the value in TargetControlID ? Please help.

      suchita

      A Offline
      A Offline
      Ali Al Omairi Abu AlHassan
      wrote on last edited by
      #2

      Sir, set the TargetControlID to a hidden linkbutton id and in the gridview use javascript to open the popup

      <a href="javascript:;" onclick="OpenDialog();" >Click me</a>

      <script type="text/javascript" >
      function OpenDialog() {
      $find('<%= extender.ClientID %>').show();
      }
      </script>

      100 :rose:

      Help people,so poeple can help you.

      1 Reply Last reply
      0
      • D Dhyanga

        Hi, I have a gridview showing list of data . When I select one of the row in the gridview, I would like to get panal (say Panel1) to be popup. I used the Ajax ModalPopupExtender but I don't know what should be the value in TargetControlID ? Please help.

        suchita

        P Offline
        P Offline
        Prasanta_Prince
        wrote on last edited by
        #3

        Place one button with visiblility off. And give that button Id as target Control ID.

        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