You are currently viewing the BOOK: Professional ASP.NET 3.5 AJAX ISBN: 9780470392171 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I'm on chapter 11, "building custom controls" and am getting a "Microsoft JScript runtime error: Sys.ParameterCountException: Parameter count mismatch." error during debugging session on the following line:
Code:
Wrox.ASPAJAX.Samples.Song.initializeBase(this);
I've tried going into the initializeBase method in hopes of finding something through debugging but can't make out the nest of javascript code that is the MS AJAX library. :)
The error is really just that -- you didn't pass the right number of parameters. Does the constructor in the base class take any parameters? If so, you need to pass them into initializeBase: initializeBase(this, [arg1, arg2, etc]). If it is control or behavior it at least takes an 'element' parameter.