Web Design and Development made affordable by innovation, and intelligence.  
 
 
 
 
 
 
Client Access
  


Got a code? Enter it here.
»
 
 
  Code Firing Twice in Your CodeBehind?
Written by Daniel Longieliere
Provided by Logic Unlimited



My button click event is firing twice in asp.net, why?

Most of the time when you find your buttons firing twice, it is because your button has an on_click event defined on the aspx page, and in the code behind, you also have a handles button.click type definition.

In short, you only need to point it once, and most people recommend that you do so on the aspx page, and disregard it in the code behind.

Hope this helps, email me if you have any trouble.


Did this help? If not, click here and contact us for further assistance.
 
RECENT ARTICLES
 
November 22.Windows 7 Tip for bringing back the quick launch bar
 
November 22.New Site launched AtlantaCDLTraining
 
July 26.Windows 7 First Impressions
 
July 22.Google thought Micheal Jacksons death was an attack
 
July 21.Use Google to find patent information
 
   
 



Share with a friend...
Enter an email address below, and hit send...

 
 
         
 
Bookmark and Share
 
 
  ©2009 LOGIC UNLIMITED LLC. All Rights Reserved.