Search code examples
asp.netcustom-controlsjavascriptjscriptmicrosoft-ajax

Sys.ParameterCountException on extend of simple textbox control using microsoft js


Here s my code trying to extend a textbox with microsoft ajax libary

On Page code is as follows :

Code on the Default.aspx page

Code in the .js file

.Js file

The error on debug is as follows

Dubug error in microsoft js file

what wrong am i doing in my code ?


Solution

  • The Error was in the constructor of the class which needed the element to be passed in the initializeBase method . Please see below .

    enter image description here