I put a RadSplitter onto a page (parent.aspx) that has two vertical panes. On the left side there is a navigation menu. If you click on an item of the menu, it will open the .aspx pages on the right side next to the navigation menu. Now I want to redirect the web application from pages that open in the right side pane (I want to redirect to a complete new webform, for example Default.aspx).

I want to redirect to another page, but when I redirect the page, Default.aspx opens in contentPane (right side). I want to open this page in a new page.

有帮助吗?

解决方案

Call this JavaScript in the content page pane:

window.top.location = "the-page-i-want-to-go-to.aspx"

This can be attached to a button click, or whatever other client-side event you use. What is important is to access the iframe hierarchy and navigate the topmost one.

If you are using anchor tags this is even easier, just add target="_top" to them.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top