code on button not firing on click

  • Thread starter Thread starter Eric Sabine
  • Start date Start date
E

Eric Sabine

I have code in my page_load event that definitely gets fired because I can
step through it. But code wired to my button_click event isn't getting
fired. The control is of type system.web.ui.webcontrols.button. If I
double-click on the control in the design window, I am taken to the
appropraite control's click event and can see my code which _should_ file.
But at runtime, the code doesn't fire. I don't get it. Any ideas?

Eric
 
But at runtime, the code doesn't fire. I don't get it. Any ideas?

Got some code you want to show us, as we can only speculate at this point.

--Michael
 
Have a look in the Web Form Designer generated code region of your code
behind. Check that the InitializeComponent() method has something like
this.btnName.Click += new System.EventHandler(this.button_click)
 
Back
Top