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

Cross page viewstate problem

1 Answer 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erik Kleinreesink
Top achievements
Rank 1
Erik Kleinreesink asked on 04 Nov 2010, 08:25 AM
I have two pages both with dynamicaly declared grids.
Page A posts to page B. But this page throws an error because the grid does not match the viewstate (of the previous page).
How can I solve this problem?

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 05 Nov 2010, 04:42 PM
Hi Erik,

When you create controls dynamically you need to ensure that they are created at the right place in the page life-cycle. You can try recreating the dynamically created controls in the Page_Init before the ViewState is loaded.

Best wishes,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Erik Kleinreesink
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or