I have a base page (Default.aspx) and two pop-up windows (PopUp1.aspx and PopUp2.aspx). When I click a button in Default.aspx I bring the PopUp1.aspx as a modal window. For some purpose I need to open another PopUp window (PopUp2.aspx) from the PopUp1.aspx as the second pop-up window.
And when I close each of these windows I need to perform some server side actions.So I have OnClientClose event in my Window manager. All required JavaScript codes are called from a file named Default.js and every aspx file has a referance to it.
To visualize the example please refer to the shape below:
http://www.freeimagehosting.net/uploads/c8747568ca.jpg
Everything runs OK until I close the second poup and try to call raise a request to the ajax panel in the first popup. I mean
code works fine but
crashes because it can not find the Ajax Panel "ajaxPanelPopUp1" which is in the PopUp1.aspx. IT seems that this code can only see the Ajax Panel at the main page "Default.aspx". How can I call the Ajax Panel in the first pop-up window PopUp1.aspx?
Regards & Thanks in advance.
And when I close each of these windows I need to perform some server side actions.So I have OnClientClose event in my Window manager. All required JavaScript codes are called from a file named Default.js and every aspx file has a referance to it.
To visualize the example please refer to the shape below:
http://www.freeimagehosting.net/uploads/c8747568ca.jpg
Everything runs OK until I close the second poup and try to call raise a request to the ajax panel in the first popup. I mean
| ajaxManager = $find('ajaxPanelMain'); | |
| ajaxManager.ajaxRequest('UpdateMain'); |
| ajaxManager = $find('ajaxPanelPopUp1'); | |
| ajaxManager.ajaxRequest('UpdatePopUp'); | |
crashes because it can not find the Ajax Panel "ajaxPanelPopUp1" which is in the PopUp1.aspx. IT seems that this code can only see the Ajax Panel at the main page "Default.aspx". How can I call the Ajax Panel in the first pop-up window PopUp1.aspx?
Regards & Thanks in advance.