Event executed twice

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

Steve C. Orr [MVP, MCSD]

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.
 

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,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top