Best option for modal popup window in ASP.NET? [closed]

旧巷老猫 提交于 2019-12-19 04:11:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!