ImageButton doble click problems

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.-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top