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

Rad window

1 Answer 157 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
vinit
Top achievements
Rank 1
vinit asked on 19 Jul 2008, 02:02 PM
Hello

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.

Regards,

Vinit

1 Answer, 1 is accepted

Sort by
0
Shaun Peet
Top achievements
Rank 2
answered on 20 Jul 2008, 09:29 PM
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
    Else
        ' The page is opened in the browser
    End If
End If

Hope that helps,

Shaun.
Tags
General Discussions
Asked by
vinit
Top achievements
Rank 1
Answers by
Shaun Peet
Top achievements
Rank 2
Share this question
or