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

Transfer ViewState from RadWindow to Parent Page

1 Answer 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
Simone
Top achievements
Rank 1
Simone asked on 27 Apr 2012, 03:35 PM
I have the following property in my RadWindow Page. How do I transfer that property to the parent window? I tried using the ViewState, but it is lost. How do I transfer the ViewState from the child window to the parent page?

        public Hashtable SelectedReps
        {
            get
            {
                object res = ViewState["SelectedReps"];
                if (res == null)
                {
                    res = new Hashtable();
                    ViewState["SelectedReps"] = res;
                }
                return (Hashtable)res;
            }
        }  

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 27 Apr 2012, 04:58 PM
Hi Simone,

You cannot transfer viewstate from one page to the other, but you can use the session to store your object.


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
Simone
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or