This is a migrated thread and some comments may be shown as answers.

Redirect to another page in parent from radWindow

1 Answer 158 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ahmed
Top achievements
Rank 1
Ahmed asked on 25 Feb 2014, 11:13 AM
hello all,
plz i have a problem 
i open page in radWindow , then in page_Load action on specific condition the page will be redirect to another one
that already happen but it redirected inside the radWindow , and when i add a javascript function to do that it open a new windows
how can i redirect to the page in parent window 
plz help 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 26 Feb 2014, 12:01 PM
Hello Ahmed,

This is the expected behavior of pages loaded in iframes - they modify only their own context.
Perhaps what you need is a frame buster that will let your pages go to the top frame if you need them to. You can see simple examples here: http://www.telerik.com/help/aspnet-ajax/window-application-is-page-in-radwindow.html and look in the net for more options (like automatically clicking anchors with target=_top).
An alternative is to register a script that will use JavaScript (or another frame buster) to load the desired page in the topmost frame instead of a code-behind redirect, but the logic is, essentially the same: http://www.telerik.com/help/aspnet-ajax/radwindow-troubleshooting-javascript-from-server-side.html.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
General Discussions
Asked by
Ahmed
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or