单击按钮关闭IFrame,然后转到主窗口 [英] Close IFrame on button click and go to Main window

查看:76
本文介绍了单击按钮关闭IFrame,然后转到主窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个要在IFrame中打开的控件.

控件上有一个按钮.

当用户单击按钮时,我想将用户重定向到主窗口中的页面.目前,重定向页面正在同一IFrame中打开.

如何关闭IFrame并转到主窗口?

请帮助..

Hi All,

I have a control which I am opening in an IFrame.

Control has a button on it.

When user clicks on the button, I want to redirect user to page in the main window. At the moment, redirected page is opening up in the same IFrame.

How can I close the IFrame and go to main window?

Plz help..

推荐答案

Response.Redirect("page.aspx")将整个页面重定向到Page.aspx.... 我不知道如何在iframe中显示重定向的页面....
可能您正在使用母版页.
Response.Redirect("page.aspx") will redirect the whole page to Page.aspx....
I wonder how can redirected page be displayed in iframe....
probably you are using master page.


这篇关于单击按钮关闭IFrame,然后转到主窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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