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

How to test Server side if the page is opened in a RadWindow?

2 Answers 51 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jurjen Ladenius
Top achievements
Rank 2
Jurjen Ladenius asked on 18 Apr 2008, 01:08 PM
Hi,

I want my page to respond differently when it has been loaded in a RadWindow. How do I test Server side (e.g. Page_Load event) if the page is opened in a RadWindow?

Kind regards,

Jurjen Ladenius

2 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 22 Apr 2008, 10:57 AM
Hello,

I don't think that there is a specific way to find out whether or not your page is in a RadWindow from server code. What you can do is open the page with a specific querystring parameter when it is in a RadWindow and check for that in the Page_Load event. For example, set the URL for your window to "\yourPath\yourPage.aspx?isRadWindow=true". Here is how you can check for the parameter:

if (!String.IsNullOrEmpty(Request.QueryString["isRadWindow"]))  
{  
    //...page is in RadWindow  

Kind regards,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
dany7487
Top achievements
Rank 1
answered on 20 Sep 2008, 10:43 PM
Hi, Lini.
Easy and Nice solution!

Daniel.
Tags
Window
Asked by
Jurjen Ladenius
Top achievements
Rank 2
Answers by
Lini
Telerik team
dany7487
Top achievements
Rank 1
Share this question
or