Answered by:
Page.RegisterStartupScript not work in Update Panel

Question
-
User-1313211662 posted
Hi i am using update panel.
Inside it i used popup dialog Helper to open page in new window which is third party control.
But this third party control use the Page.RegisterStartUpScript internally.
Is any solution to solve this issue.
I am not able to open the new popupwindow
Thanks
Tuesday, December 29, 2015 5:22 AM
Answers
-
User1724605321 posted
Hi sangad,
If possible , you could use other popup , for example, Jquery dialog :
and AJAX PopupControl :
http://www.ajaxcontroltoolkit.com/PopupControl/PopupControl.aspx
Best Regards,
Nan Yu
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, December 29, 2015 7:26 AM
All replies
-
User-1506965535 posted
I am not able to open the new popupwindowHi Sangad,
When you are using Update panel then you can not call javascript. You have to use
ScriptManager.RegisterStartupScript(updatePanelId,updatePanelId.GetType() , "alert", javaScript, true);
Hope that helps
Tuesday, December 29, 2015 5:48 AM -
User-1313211662 posted
Hi Nadeem,
Thanks for solution.
But the problem is i am using third party dll which contains Page.RegisterStartUpScript that i cant change.
Tuesday, December 29, 2015 5:50 AM -
User-1506965535 posted
Which is that dll ? you need to provide that information too.
Tuesday, December 29, 2015 7:01 AM -
User-1313211662 posted
Its PopupDialogHelper.dll
it use internally Page.RegisterStartupScript.
Tuesday, December 29, 2015 7:19 AM -
User1724605321 posted
Hi sangad,
If possible , you could use other popup , for example, Jquery dialog :
and AJAX PopupControl :
http://www.ajaxcontroltoolkit.com/PopupControl/PopupControl.aspx
Best Regards,
Nan Yu
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, December 29, 2015 7:26 AM