ERROR 'name' is null or not an object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ritesh4uall
    New Member
    • Nov 2006
    • 1

    ERROR 'name' is null or not an object

    Hi,

    I am getting an error

    ERROR 'name' is null or not an object

    i dont know what it means, i am kinda new to javascript

    Please Help
    Regards
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    Post the code.

    Comment

    • mikebol
      New Member
      • Feb 2008
      • 1

      #3
      I had this same issue with the CascadingDropDo wn control. I had forgotten to add the [ScriptService()] to the top of my web service.

      Code:
          [WebService(Namespace = "http://tempuri.org/")]
          [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
          [ToolboxItem(false)]
          [ScriptService()]        <<<< THIS <<<<
          public class GetData : System.Web.Services.WebService
          {
              [WebMethod]
              public CascadingDropDownNameValue[] GetUserTypes(string knownCategoryValues, string category)

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Originally posted by mikebol
        I had this same issue with the CascadingDropDo wn control. I had forgotten to add the [ScriptService()] to the top of my web service.
        Hi Mike, welcome to TSDN and thanks for posting. I don't think the problem was so specific. This error can occur when you're using "name" as an object when it hasn't been defined.

        Comment

        Working...