I am currently working with an asp menu and trying to configure the navigateurl so that it opens in a new popup window. The issue I am facing is that when I execute the code, I encounter the following error:
Error: The value of the property 'openNewWin' is null or undefined, not a Function object
Furthermore, in the address bar, I see this:
javascript:openNewWin('/Controls/Financial/CustomerTypes.aspx')
Below is the snippet of code where I set the URL:
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);
}