Tuesday, December 9, 2008

ASP.NET: UpdatePanel and popup with javascript


How to open popup-window with javascript when there is a UpdatePanel control in the page


You must use ScriptManager.RegisterStartupScript() instead of ClientScript.RegisterStartupScript(). That's because ScriptManager enables partial page update what AJAX needs but ClientScript doesn't enable partial page updates.