Rad window

2 posts, 0 answers
  1. vinit
    vinit avatar
    23 posts
    Member since:
    Apr 2008

    Posted 19 Jul 2008 Link to this post


    I want to open a new Rad window on the button click. And I want to display some controls from the same page only.

    Please provide me any sample application for the same or any methods to do the same.


  2. Shaun Peet
    Shaun Peet avatar
    571 posts
    Member since:
    Aug 2004

    Posted 20 Jul 2008 Link to this post

    To do what you're describing means that you would be opening the same page in the window as the "parent" page, correct?  If that's the case, then it's pretty simple to know whether or not that page is in a window or not, because the window will add "rwndrnd=some long number" to the querystring of the page that is open in the window.

    So, in you're Page_Load event, or some other event that is controlling what to do when the controls are instantiated:

    If Not IsPostBack Then
        If Request.QueryString("rwndrnd") <> ""
            ' The page is opened in a RadWindow
            ' The page is opened in the browser
        End If
    End If

    Hope that helps,

Back to Top