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
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"]))