Value is not the name of the type being registered or the name is a reserved word.

Last post 03-03-2008 9:19 PM by bmains. 2 replies.

Sort Posts:

  • Value is not the name of the type being registered or the name is a reserved word.

    02-29-2008, 8:15 PM
    • All-Star
      28,016 point All-Star
    • bmains
    • Member since 10-22-2004, 8:20 AM
    • Posts 5,652
    • TrustedFriends-MVPs

    Hello,

    I'm getting the exception "Value is not the name of the type being registered or the name is a reserved word." whenever I try to register my class name, which is this line:

    Type.registerClass('Nucleo.Web.ButtonControls.TextBoxButtonEnablerBehavior', Sys.UI.Behavior);

    Why is that?  WHat is the issue with this name?

    Thanks.

    Brian

    "Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
  • Re: Value is not the name of the type being registered or the name is a reserved word.

    03-01-2008, 12:34 PM
    Answer
    • Contributor
      7,416 point Contributor
    • Garbin
    • Member since 09-17-2004, 12:35 PM
    • Sassari, Italy
    • Posts 1,506
    • ASPInsiders
      TrustedFriends-MVPs

    Hi,

    you should call the registerClass method on you constructor. That is:

    MyNamespace.MyClass.registerClass("MyNamespace.MyClass", Sys.UI.Behavior); 

    Alessandro Gallo | Blog | My book: ASP.NET AJAX In Action
  • Re: Value is not the name of the type being registered or the name is a reserved word.

    03-03-2008, 9:19 PM
    • All-Star
      28,016 point All-Star
    • bmains
    • Member since 10-22-2004, 8:20 AM
    • Posts 5,652
    • TrustedFriends-MVPs

    Ahh, yes, that worked.  Thanks.

    Brian

    "Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
Page 1 of 1 (3 items)