如何在mvc中添加弹出对话框 [英] how add popup dialog in mvc

查看:511
本文介绍了如何在mvc中添加弹出对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个主页面,页面中添加了按钮

点击按钮时,会打开弹出对话框,显示用户列表复选框。选择多个用户,然后单击添加按钮,显示已选中用户在主页面。



虽然我不会在项目中使用任何组件,但都是由razor

解决方案

< blockquote>在创建新的浏览器窗口或标签时,最好不要显示任何弹出窗口。这样的弹出窗口非常烦人,不方便,一些细节取决于平台和浏览器。此外,许多用户将使用特殊的浏览器插件阻止他们。



替代解决方案,非常灵活和方便,是在当前页面上模拟模态行为。您可以使用jQuery UI插件Dialog: http://jqueryui.com/dialog [ ^ ]。



有许多第三方JavaScript组件统称为模态弹出窗口,它们具有不同类型的效果(动画,调光等)和功能。请参阅并尝试其中一些: http://bit.ly/1KQXvGS [ ^ ]。



祝你好运,

-SA

i have a main page that a added button in the page
while click on button ,it opens popup dialog that shows user list to checkbox .while select multiple user then click add button ,show selected user in main page.

though i don`t use any component in project but all by razor

解决方案

It's better not to show any pop-ups, in the sense of creation of new browser windows or tabs. Such pop-ups are very irritating, inconvenient and some detail depends on the platform and browser. Besides, many users will block them using special browser plug-ins of features.

The alternative solution, very flexible and convenient, is to model modal behavior on the current page. You can use jQuery UI plug-in "Dialog": http://jqueryui.com/dialog[^].

There are many 3rd-party JavaScript components collectively known as "modal popups", they are complete with different kinds of effects (animations, dimming, etc.) and features. Please see and try some of them out: http://bit.ly/1KQXvGS[^].

Good luck,
—SA


这篇关于如何在mvc中添加弹出对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆