当用户单击“登录”链接时,我需要在对话框中打开 login.aspx
页面。
我查看了 jQuery UI 对话框,但看起来它无法从给定 URL 打开整个页面?
你们对我可以使用什么有什么建议吗?
最佳答案
您只需创建一个 <iframe>
和.dialog()
它可以得到你想要的东西,简单地说。 Elijah Manor has a full post with code on how to do this .
这是一个快速版本:
$('<iframe src="login.aspx" />').dialog({
title: 'Login',
width: 600,
height: 400,
modal: true,
}).width(570).height(370); //give it a bit of padding
关于c# - 如何使用 jQuery 在对话框中打开页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3255468/