code on button not firing on click

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
 
R

Raterus

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
 
J

Janaka

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)
 

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
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top