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 identify which div opened the popup

How to identify which div opened the popup

Scheduled Pinned Locked Moved ASP.NET
javascripthelptutorialannouncement
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.
  • R Offline
    R Offline
    rama charan
    wrote on last edited by
    #1

    Hi all, i have multiple update panels with buttons .i open a popup which is a new page when i click on the button using javascript code.All update panels open the same popup.I need to update the parent which opened this popup once i close the popup.I also know how to refresh the update panel when i close the popup What i was unable to find out is how to find out which button(which ) has opened this popup.so that i can update that specific update panel The sample code is shown below

    Any help or suggestions are appreciated Thanks in advance,

    Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

    S 1 Reply Last reply
    0
    • R rama charan

      Hi all, i have multiple update panels with buttons .i open a popup which is a new page when i click on the button using javascript code.All update panels open the same popup.I need to update the parent which opened this popup once i close the popup.I also know how to refresh the update panel when i close the popup What i was unable to find out is how to find out which button(which ) has opened this popup.so that i can update that specific update panel The sample code is shown below

      Any help or suggestions are appreciated Thanks in advance,

      Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

      S Offline
      S Offline
      Sundar_R
      wrote on last edited by
      #2

      Did you try passing the div id in the method showpopup <asp:linkbutton id="lnkbutn" runat="server" text=" lcick me to open popup" onclientclick="return showpopup('div1');" />

      R 1 Reply Last reply
      0
      • S Sundar_R

        Did you try passing the div id in the method showpopup <asp:linkbutton id="lnkbutn" runat="server" text=" lcick me to open popup" onclientclick="return showpopup('div1');" />

        R Offline
        R Offline
        rama charan
        wrote on last edited by
        #3

        able to fix the same thanks a lot sundar. my approach was 1)i pass the div id which opens the page using querystring url 2)raise a method in parent from popup to execute and pass this divid (which i read from querystring using javascript code) and use it to refresh the parent update panel 3)the method in parent has code to refresh the respective update panel passed as parameter to it. Thanks a lot once again sundar

        Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

        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