Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Asp.net and Ajax Updatepanel bug brrrrr...

Status
Not open for further replies.
Apr 9, 2007
16
US
I am using the Ajax UpdatePanel, and put an Ajax tab inside of it. I then put some buttons inside the tab. Then add the trigger to make one of the buttons
<asp:postBackTrigger ControlID="MyButton"/>

Then when I compile and run the page, and I got this error.

"A control with ID 'MyButton' could not be found for the trigger in UpdatePanel 'UpdatePanel1'"

So I checked and checked again. Checked and even add the trigger in the UpdatePanel1 property page, and I still get the same error. I was like what? That never happen before why now? Brrrrrr. I feel like choking somebody.

When I googled, it said somethihng about it being a bug. However, they dont provide a clear and understandable example. Can someone please help?



 
try adding the button in the Page.OnInit event in the code behind instead of declaratively. It appears it can't find the button, so you may need to use [tt][MyControl].FindControl("MyButton").ClientID[/tt] in the code behind to attach the event.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top