AjaxControlToolkit
AjaxControlToolkit copied to clipboard
TabContainer Disappears - Uncaught TypeError: Cannot set property 'control' of undefined
The AJAX Control Toolkit <VERSION>
AjaxControlToolkit.Installer.20.1.0
The installation method
- [ X] Installer
- [ ] NuGet package
- [ ] A custom build from the source code
Minimal steps to reproduce the bug
Using a repeater in a Tab all works until I try and access a control within the footer of the repeater in an effort to set its visible property, e.g. making a visible a label that says No Rows Returned.
Actual result
Entire tab container disappears. Inspecting the html, it seems the TabContainer has style=visibility:hidden, which I don't have there. If I enable it the styling is still not right, but given it appears to be an error in the MsAjax script, it could by the styles are not loaded fully.
In the attached script the error occurs at line 3070, n.control = this;
Expected result
TabContainer and its contents should render properly.
Browser(s) used
Chrome and Edge
A site deployment method
- [ ] VS development web-server,
- [X ] IIS
Upon further research, it appears that the error is now occurring simply when I handle a click event on Tab1 and the attempt to load through code behind repeaters in Tab2 and Tab3. What's odd is that the loading of the repeaters was working.
So, I backtracked...I removed a footer template that I had added along with an asp:Label. Now, when I click on Tab1, both Tab2 and Tab3 load and the entire TabContainer and Tabs remain visible.