Wednesday, March 21, 2012

Load User Control into Modal Popup

Hi

New to .net / ajax etc but have had some joy and got several bits working.

I am looking for an example of how to load user controls into modal popup, for example, I have two buttons, 1 will load user control1, and button2 will load user control2 into modal popup.

Many thanks for help.

Richard.

An approach for this is to use an UpdatePanel inside the ModalPopup, seehttp://blogs.technet.com/kirtid/archive/2007/05/03/using-updatepanels-with-modalpopups.aspx and then you can load the User Control into the UpdatePanel:http://geekswithblogs.net/rashid/archive/2007/08/11/Loading-UserControl-Dynamically-in-UpdatePanel.aspx

-Damien

No comments:

Post a Comment