如何在Panel中显示窗口内容 [英] How to show Window Content in Panel

查看:375
本文介绍了如何在Panel中显示窗口内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

在我的应用程序中,当用户点击查看详细信息时,我会显示一个窗口。此窗口显示不同应用程序的详细信息



我实现如下代码,点击按钮点击窗口:



Hello,
In my application, am showing a window when user clicks "View Details". this window shows details of different application.

am implementing code like below to show window on button click :

Page.ClientScript.RegisterStartupScript(this.GetType(),  "ViewDocuments", "window.open('" + script + "',null,'height=900,width=1000,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=no');", true);



脚本有url..Which按钮点击打开窗口..



但我需要在页面本身而不是窗口中显示此内容。



例如我有一个面板。当用户点击查看详细信息按钮时,内容应显示在面板而不是窗口中。



这是可能的..



谢谢


the script has the url..Which opens window on button click..

But I need to show this content in page itself instead of window.

For example i have a panel. when user clicks the view details button , the content should show in panel instead of the window.

Is that possible..

Thank You

推荐答案

是的,您需要做的就是使用iframe并将src属性设置为url。请参见 http://www.w3schools.com/html/html_iframe.asp [ ^ ]以获取iframe的示例。
Yes, all you need to do is use an iframe and set the src property to be the url. See http://www.w3schools.com/html/html_iframe.asp[^] for an example of what an iframe is.


这篇关于如何在Panel中显示窗口内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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