Unexpected error in Ajax web part

January 20th, 2010 | Tags:

After creating an Ajax web part using a TabContainer, I started getting errors after I added an AutoComplete Extender. I had made sure that the extender is working for a asp.net page.

The problem was that I was using the code this.Controls.Add to add the extender to the Controls collection of the page. The error went off after I changed it to the tbCurrent.Controls.Add, where tbCurrent denotes the TabPanel where I had the TextBox.

No comments yet.