title: The value of the property 'openNewWin' is null or undefined, not a Function object
body: <p>I have an asp menu and I am trying to set the navigateurl so that it opens in a new popup. The only problem is when I run the code it gives me the error: </p>
  
  <p>Error: The value of the property 'openNewWin' is null or undefined, not a Function object</p>
  
  <p>and in the address bar I have this:</p>
  
  <p>javascript:openNewWin('/Controls/Financial/CustomerTypes.aspx')</p>
  
  <p>This is the code that ads the url:</p>
  
  <pre><code>foreach (DataRowView childView in viewItem) 
  {
     MenuItem childItem = new MenuItem(childView["MenuName"].ToString(), childView["MenuId"].ToString());
  
    //childItem.NavigateUrl = childView["MenuUrl"].ToString();
    childItem.NavigateUrl = "javascript:openNewWin('" + childView["MenuUrl"].ToString() + "')";
  
    menuItem.ChildItems.Add(childItem);
    AddChildItems(table, childItem);
  
  }
  </code></pre>