Microsoft JScript runtime error: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.
I get this iritating warning on my webpage when i use TabContainer (uisng Ajax tab).
When i run it i can simply tell to ignore and the code works and doing what its intending to do, but i cant have people to check the warning box so they can use the application.
Cant find a solution for it.
running VS 2010
AjaxControlToolkit 4.1.5.1116.0
Pleas. If any have a good solution and code to fix it.
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
*
*
*
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"></asp:ScriptManager>
<cc1:TabContainer ID="tbMain" runat="server"
Height="100%" Width="840"
ActiveTabIndex="0" BorderStyle="NotSet" BorderWidth="0"
CssClass="ajax__CustomTabStyle">
<cc1:TabPanel ID="tabPanel1" runat="server" HeaderText="Lista" Width="100%"
Enabled="true" ScrollBars="Auto" OnDemandMode="Once" CssClass="ajax__CustomTabStyle">
<ContentTemplate>
**** plain textbox, labels and nothing fancy
</ContentTemplate>
</cc1:TabPanel
</cc1:TabContainer
Comments: I'm having the same issue with the new May 2012 release: How to reproduce: 1) New Blank asp.net 4.0 Website in VS2010 2) Add the reference to the May 2012 AjaxControlToolkit 3) New Default.aspx webform page 4) Add a tab container with NO TAB PANELS 5) in the PAGE_LOAD event add the following code (VB) For i as int = 0 to 20 Dim t as new ajaxcontroltoolkit.TabPanel t.id = i 'Unique ID TabPanel1.tabs.add(t) t = nothing Next