Thursday, August 23, 2012

ASP.NET/C#/AJAX - trigger ModalPopUp from server side code


Add BehaviorID="ModalPopupBehaviorID" to your modal popup extender and add this to any server function.
ScriptManager.RegisterStartupScript(Page, this.GetType(), "id", "function pageLoad(){$find('ModalPopupBehaviorID').show();}", true);


Cheers!

No comments:

Post a Comment