如何在asp.net中添加模式对话框 [英] how to add modal dialog box in asp.net

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

问题描述

大家好!

我希望在单击登录按钮时出现模态对话框,并且在对话框中要有两个文本框和两个按钮,并且在获取输入后应在数据库中进行检查,并在成功完成后将其转移到另一页.

不用AJAX是否可以实现!!



hi all!

i want modal dialog box to appear when the login button is clicked,and in the dialogbox there want to be two textbox and two buttons and after getting the input and should be checked in the database and after success full it should be tranfered to another page.

whether tis s possible with out using AJAX !!



thanks and regards in advance!

推荐答案

您可以使用window.showModalDialog,但AFAIK仅在IE中有效.这是给你的信息

https://developer.mozilla.org/en/DOM/window.showModalDialog [ ^ ]

http://msdn.microsoft.com/en-us/library/ms536759 (v = vs.85).aspx [ ASP.NET Web表单中的ShowModalDialog效果 [
You could use window.showModalDialog but AFAIK it only work in IE. Here are info for you

https://developer.mozilla.org/en/DOM/window.showModalDialog[^]

http://msdn.microsoft.com/en-us/library/ms536759(v=vs.85).aspx[^]

ShowModalDialog effect in ASP.NET web forms[^]


除了Yusuf共享的传统window.showmodaldialog ,我建议您再看看ASP.NET中方便使用的另外两个选项:
Ajax工具包ModalPopup [ jQuery对话框 [
Apart from traditional window.showmodaldialog that was shared by Yusuf, I would suggest you to look at two more options that come handy in ASP.NET:
Ajax Toolkit ModalPopup[^]
jQuery Dialog[^]


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

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