How to open top window (include the frameset) in parent window? Thanks a lot!

angel_lee angel_lee 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
Scenario below:
I have a .asp window A (here we call it parent window)which contains a frameset. (actually it sometimes contain frameset, sometimes do not contain frameset.) A includes a header file we call it TopBar.asp.

I have a asp.net window B (we call it child window), it has a lot of different URL links on window B. When I click each of the links, they will open in page A.

It didn't works if I use target="_parent" in window B. So I give a name "aaa" to TopBar, then set target="aaa" and open the links in window A.

Question:
How could I open the links in window A from Top window in .net? Since my .net code do not have <a href ...> or anything like asp.

(I could not put the page "aaa" in frameset, since sometimes the window do not have frameset)

I am not sure if I make sense. Please let me know if it has any questions. Thanks a lot!
...全文
评论 27
收藏 已收藏
分享
返回顶部
angel_lee
C# 111,129 成员 642,538 内容