Search code examples
asp.netjqueryajaxcontroltoolkit

ASP.NET AJAX modal popup framework


I'm using ASP.NET 3.5 + Ajax Control Toolkit + jQuery (NO MVC yet)
I'm looking for a standard solution for showing a user control (.ascx) as a modal popup (like the Ajax Control Toolkit ModalPopupExtender implementation), where I can pass parameters to it before it opens. Then get some values on closing, and potentially handle events on the server.

I'm currently using a combination of the ModalPopupExtender and update panel to implement this each time I need it. It seems like it takes too much plumbing that has to be created each time.
Before creating my own packaged solution, I'm looking for an existing solution, or for a better pattern to implement this.


Solution

  • It didn't take me too much time to do this. Let me dig up my own implementation.

    EDIT:

    In it's simplest form, this is what I used. I could drop this into a UserControl and then drop that in any page I wished to use it.

    Trying to self contain pop ups which use the AjaxToolkit ModalPopUpExtender

    Not sure if this is the part you're wrestling with though.