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

3 posts, 0 answers
  1. Jurjen Ladenius
    Jurjen Ladenius avatar
    25 posts
    Member since:
    Jan 2006

    Posted 18 Apr 2008 Link to this post

    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. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 22 Apr 2008 Link to this post

    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
  3. dany7487
    dany7487 avatar
    88 posts
    Member since:
    Jan 2008

    Posted 20 Sep 2008 Link to this post

    Hi, Lini.
    Easy and Nice solution!

    Daniel.
Back to Top