单击按钮关闭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.