Event executed twice

  • Thread starter Thread starter Alberto
  • Start date Start date
A

Alberto

I have a linkButton with a method associated to the click event. The problem
is that the code is executed twice. The causes validation property is set to
false.

What's happening?

Thank you.
 
Make sure that your event is not being wired up twice. Keep in mind there
is usually such a statement in the windows generated code section in your
code behind that is easy to overlook, so if you're adding the event manually
then this could result in two such statements. This could also happen if
AutoEventWireup is true.
 
Back
Top