M
Mauro Restuccia
Hi,
I am using an ImageButton using the following event
Sub imageButton_Command(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.CommandEventArgs)
.....
End Sub
The problem that I experienced is when an user double click the button
and I have in the screen a custom control (placeholder1)
The error is:
"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 my question is:
1) Can I avoid the double click or make the code a little bit more
transactional?
2) Why if I have in the web.config that customserrors=on I still
receive the error on the screen?
Thanks in advance for any idea!!!
mauro.-
I am using an ImageButton using the following event
Sub imageButton_Command(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.CommandEventArgs)
.....
End Sub
The problem that I experienced is when an user double click the button
and I have in the screen a custom control (placeholder1)
The error is:
"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 my question is:
1) Can I avoid the double click or make the code a little bit more
transactional?
2) Why if I have in the web.config that customserrors=on I still
receive the error on the screen?
Thanks in advance for any idea!!!
mauro.-