You are currently viewing the BOOK: Professional ASP.NET 3.5 AJAX ISBN: 9780470392171 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
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.