Best option for modal popup window in ASP.NET?(ASP.NET 中模式弹出窗口的最佳选择?)
问题描述
这个问题是几年前问的,所以我要再问一次.
This question was asked a few years ago, so I'm going to ask it again.
我正在寻找在 ASP Button 控件的单击事件时显示模式弹出窗口的最佳/最干净的选项.窗口的内容将是一个 aspx 页面.
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 如果它们适合模具,则不是不可能的.
jquery/plugins aren't out of the question if they fit the mold.
推荐答案
jQuery 字段中有很多选项:
There are a host of options in the jQuery field:
jQueryUI 的 对话框
jQueryUI's dialog
Wijmo 的 对话框
SimpleModal
这些只是众多选项中的三个.jQueryUI 很容易开箱即用,但不像 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.
如果您已经在使用 jQuery,那么 jQueryUI 的选项可能是一个不错的选择.Wijmo 也是 jQueryUI 兼容/友好的(使用相同的主题 CSS 类名和模式),所以它也很合适.
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.
所以这有点取决于你想要什么.一些非常简单的东西——也许是 jQueryUI.华丽/漂亮——SimpleModal.更复杂但对 jQueryUI 友好 - Wijmo.
So it kind of depends on what you want. Something very simple - maybe jQueryUI. Flashy/pretty -- SimpleModal. More complex but jQueryUI-friendly - Wijmo.
这篇关于ASP.NET 中模式弹出窗口的最佳选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:ASP.NET 中模式弹出窗口的最佳选择?


- 输入按键事件处理程序 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01