R
Rotsey
Hi,
I have a web site that uses user controls to display different formats of
timesheets.
I have a browse page that has prev/next buttons to browse through a set of
timesheets.
As I say they can be different user controls for each timesheet type.
The problem is when I navigate (prev/next) from one type of user control to
the next type
I get this error
System.Web.HttpException: 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.
The thing is strange is that say the first user control is for monthly
timesheets and then I click next to goto
a weekly timesheet (different user control) it is fine. But when i go back
to the first monthly timsheet
again it gives this error.
Help!!
rotsey
I have a web site that uses user controls to display different formats of
timesheets.
I have a browse page that has prev/next buttons to browse through a set of
timesheets.
As I say they can be different user controls for each timesheet type.
The problem is when I navigate (prev/next) from one type of user control to
the next type
I get this error
System.Web.HttpException: 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.
The thing is strange is that say the first user control is for monthly
timesheets and then I click next to goto
a weekly timesheet (different user control) it is fine. But when i go back
to the first monthly timsheet
again it gives this error.
Help!!
rotsey