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

Struck With An Error in Grid

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Leo
Top achievements
Rank 1
Leo asked on 04 Jul 2009, 06:23 AM
Error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: 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 controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.



So, i really dont know how to overcome this....

If any one can help me Pls...............



-Leo.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Jul 2009, 06:25 AM
Hello Leo,

This error can occur when in the initial page load, you create a control(dynamically), but after the postback this control does not exist or rather on postback you add a different control in the place of the first control.
Refer to the following forum thread to gather more details about the issue:
http://forums.asp.net/p/1295517/2526944.aspx

Thanks
Princy.
Tags
Grid
Asked by
Leo
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or