Transfer ViewState from RadWindow to Parent Page

2 posts, 0 answers
  1. Simone
    Simone avatar
    34 posts
    Member since:
    Mar 2011

    Posted 27 Apr 2012 Link to this post

    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;
                }
            }  
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5701 posts

    Posted 27 Apr 2012 Link to this post

    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.
Back to Top