I was recently working with adding menu items in a vb.net code behind based on a user's role. The item was added to the menu, but the code gave birth to a weird error that I have no idea what it means, where it is, or how to address. Any help is appreciated.
Here's the code behind;
When I run this app, I get a error that says; Microsoft JScript runtime error: 'undefined' is null or not an object (screen shot attached)
The best I can tell, this is a generated telerik code file that is screwing up somehow. Any ideas on how to fix this? I can't deploy the app with this issue.
Here's the code behind;
'Determine user access, and load controls accordinglyIf Roles.IsUserInRole(UserID, "Loss Prevention") = True Then 'Create menu items Dim item As RadMenuItem = New RadMenuItem("Loss Prevention") Dim ChildItem As RadMenuItem = New RadMenuItem("I.P. Search") 'assign all necessary menu item properties ChildItem.NavigateUrl = "~/LossPrevention/IPSearch.aspx" ChildItem.ImageUrl = "~/App_Themes/PanBlue/icons/SearchIcon1.png" 'add menu items RadMenu1.Items.Add(item) item.Items.Add(ChildItem)End IfWhen I run this app, I get a error that says; Microsoft JScript runtime error: 'undefined' is null or not an object (screen shot attached)
The best I can tell, this is a generated telerik code file that is screwing up somehow. Any ideas on how to fix this? I can't deploy the app with this issue.