How to identify which div opened the popup
-
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..:)"
-
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..:)"
-
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');" />
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..:)"