Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > UpdatePanel and ASP:Button - Button's Click event doesn't fire

Thread Tools

UpdatePanel and ASP:Button - Button's Click event doesn't fire

Posts: n/a
I have an UpdatePanel on my web form and inside the ContentTemplate, I
have a button that will process the data that the user has entered
into the textboxes, etc.

When the button is in the UpdatePanel's ContentTemplate, the Click
event doesn't fire.

When I take it out of the ContentTemplate and add it right after the
UpdatePanel, the Click event works. Is there a way for me to have
that button in the ContentTemplate or do I have to keep it outside to
have my code executed?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Triggering an UpdatePanel with a trigger located outside of the UpdatePanel Nathan Sokalski ASP .Net 1 06-15-2009 06:23 PM
Re: UpdatePanel and ASP:Button - Button's Click event doesn't fire Nathan Sokalski ASP .Net 0 01-15-2009 10:00 PM
button click event not firing in PreRender of the updatepanel Murthy ASP General 1 07-07-2008 09:19 PM
refresh an updatePanel in an other updatePanel ASP .Net 3 08-08-2007 06:30 AM
How to fire both event button click and textchanged when button is click and text is changed Amy ASP .Net 0 06-01-2006 02:33 PM