Home > .net 2.0, c# > AJAX Controls Toolkit – TabsContainer Postback Error and Fix

AJAX Controls Toolkit – TabsContainer Postback Error and Fix

February 1, 2007

I implemented, using the latest AJAX (v1.0) and Toolkit (23 Jan 2007) the new Tabs controls for a web site; however, when posting back inside a tab, I recieved an ugly javascript error:

this.get_element().style is null or not an object.

Ehh… okay, that’s not good.  So, to Google I went and discovered a news post from late last week detailing the EXACT same problem. 

Here’s the fix for those who are unfamiliar with editing the Toolkit directly.

  1. Download the AJAX Control Toolkit with source.
  2. Open the AjaxControlToolkit solution.
  3. Go into the AjaxControlToolkit project, and then the Tabs folder.
  4. Open Tabs.js.
  5. Search for “dispose”.
  6. Update the javascript function to match below.  The “change” is bolded.
  7. Save, recompile, and copy the \bin\Debug file off to another location.
  8. Reimport/reference the new library to your project, compile, and run.

dispose : function() {
Sys.Application.remove_load(this._app_onload$delegate);
AjaxControlToolkit.TabContainer.callBaseMethod(this, “dispose”);
},

ASP.NET Forums – Tabs Control script problem on update.

Works like a champ!

Categories: .net 2.0, c#
  1. March 2, 2007 at 6:40 pm

    thanks very much, was struggling with this also. Downloaded the toolkit w/source and found it already includes the update. Just had to recompile & redeploy, but thanks for the tip😉

  2. March 2, 2007 at 7:40 pm

    Yeah, they tackled it within about a week of the post. Good luck!

  1. No trackbacks yet.
Comments are closed.
%d bloggers like this: