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

Ways of passing data to RadWindow

1 Answer 189 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alan T
Top achievements
Rank 1
Alan T asked on 06 Oct 2011, 11:16 AM
Can someone advise me on what are the best ways to pass data to RadWindows.


At the moment i'm adding them onto the querystring i'm opening RadWindow with, but its becoming more complex. In this circumstance, i'd like to pass a mySQL query to the radwindow. I don't want to do this in the Querystring because it will get absolutely massive.

I could add it to a session, and do it that way, but i just want to do the best way. I assume RadWindow cannot access the viewstate of its parent window, if i store it in there?

Thanks,

Alan

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 07 Oct 2011, 03:16 PM
Hello Alan,

If you need the data in the code-behind this becomes a matter of cross-page communication which is not directly related to the RadWindow. You would have the same issue when opening new tabs/browser windows. Passing information between pages is considered general knowledge and there are different ways to do so, and actually none of them are related to our controls in any way. What I can suggest is that you start from the following google search and see which of the methods advised in the net best fits your needs: http://www.google.com/search?&q=call+method+from+another+page.
For example:
http://www.codeproject.com/KB/user-controls/Page_UserControl.aspx
http://bytes.com/topic/c-sharp/answers/275312-how-call-function-another-page
http://stackoverflow.com/questions/330138/why-cant-i-call-a-public-method-in-another-class

If you need the values in JavaScript you can examine the this help article on the matter: Please note that here applies the same domain JavaScript limitation (i.e. your pages must be from the same domain).


Regards,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Window
Asked by
Alan T
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or