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

[Solved] failed to load viewstate

2 Answers 193 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ibrahim
Top achievements
Rank 1
ibrahim asked on 01 Jun 2009, 12:39 PM
hello all i have a problem in my project and i asked the question in the grid forum but i am not sure what is causing the problem!!! i have a radgrid with one column acting likt a command column..in the command event handler a read some values from the grid..store them in session state and open a radwindow linking me to another page....i stored the values in session state since these values will be used in the operation of the other  page now whenever i close the window and try doing something in my project that causes a post back i will get a jscript runtime error stating that: 

sys.webforms.pagerequestmanagerserverexception: failed to load viewstate the control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. for example when adding the controls dynamically, the controls added during the post-back must match the type and position of the controls added during the initial request





now what did i do wrong!!! thanks in advance guys

2 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 04 Jun 2009, 07:08 AM
Hello ibrahim,

Based on this information, it is hard to determine what is causing the unwanted behavior. If the problem persists, you can open a formal support ticket, and send us a small working project, demonstrating your setup, as well as the unwanted behavior. We will review it locally, and advise you further.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
ibrahim
Top achievements
Rank 1
answered on 04 Jun 2009, 07:40 AM
actualy i was just trying to reproduce the problem in a sample project but i wasnt able to...so i recreated my page again...copying the components and it worked!!! i was shocked but it worked any way thanks guys
Tags
Grid
Asked by
ibrahim
Top achievements
Rank 1
Answers by
Yavor
Telerik team
ibrahim
Top achievements
Rank 1
Share this question
or