简体   繁体   English

在asp.net中弹出窗口

[英]Pop up window in asp.net

I have a send message button and on clicking that I open a website in a new page which has a panel and has few labels and a send button inside the panel. 我有一个发送消息按钮,点击它我在一个新页面打开一个网站,该页面有一个面板,面板内有很少的标签和一个发送按钮。 I want to make that panel a pop up on the same window and the source page should be in the background blurred. 我想在同一个窗口弹出该面板,源页面应该在背景模糊。 how to make a pop up in the same window. 如何在同一个窗口中弹出一个窗口。 Please help 请帮忙

I would recommend looking into the ASP.NET AJAX Control Toolkit Modal Popup Extender: 我建议查看ASP.NET AJAX Control Toolkit Modal Popup Extender:

http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/modalpopup/modalpopup.aspx http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/modalpopup/modalpopup.aspx

Using this control, you can transform a regular Panel , so that it appears as a Popup on top of your other content. 使用此控件,您可以转换常规Panel ,使其在其他内容之上显示为Popup。


Alternatively, jQuery offers a simple modal plugin: 或者,jQuery提供了一个简单的模态插件:

http://www.ericmmartin.com/projects/simplemodal/ http://www.ericmmartin.com/projects/simplemodal/

For that you need to use jquery and ajax. 为此,您需要使用jquery和ajax。

Jquery UI has a dialog box which you can use for this task. Jquery UI有一个可用于此任务的对话框 There's also jquery tools by Flowplayer which is another good one. 还有Flowplayerjquery工具,这是另一个很好的工具

I've personally used this without any problems in the past. 我个人使用这个不过去的任何问题。 It's pretty easy to use. 它非常易于使用。 It allows you to open a separate page inside the modal popup. 它允许您在模态弹出窗口中打开一个单独的页面。

I have been using the Pretty Photo library lately and have been happy with how it looks and how simple it is to setup. 我最近一直在使用漂亮的照片库,并对它的外观和设置的简单性感到满意。 Support for iFrames makes it easy to load in a separate page in the popup. 支持iFrame可以轻松加载弹出窗口中的单独页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM