问题
This question was asked a few years ago, so I'm going to ask it again.
I'm looking for the best/cleanest option to display a modal popup window upon the click event of an ASP Button control. The contents of the window will be an aspx page.
Cross-browser compatibility is a requirement
jquery/plugins aren't out of the question if they fit the mold.
回答1:
There are a host of options in the jQuery field:
jQueryUI's dialog
Wijmo's Dialog
SimpleModal
These are just three options out of many. jQueryUI is pretty easy to use out of the box, but isn't as customizable (or easy to) and "pretty" as SimpleModal. At their core, their pretty much all very similar.
If you'd already using jQuery, jQueryUI's option may be a good fit. Wijmo is also jQueryUI compatible/friendly (use the same theme CSS class names and patterns), so it's also a good fit.
So it kind of depends on what you want. Something very simple - maybe jQueryUI. Flashy/pretty -- SimpleModal. More complex but jQueryUI-friendly - Wijmo.
回答2:
I have had no problems with the ModalPopupExtender in the AjaxControlToolkit, which will do exactly what you are intending.
The sample site for the modal popup is at http://www.asp.net/ajax/ajaxcontroltoolkit/samples/modalpopup/modalpopup.aspx
Note that the tool kit is free, and that it extends the base ASP.Net controls.
回答3:
Lightbox Gone Wild is insanely quick to integrate, the contents can also be an aspx page.
来源:https://stackoverflow.com/questions/6987875/best-option-for-modal-popup-window-in-asp-net