This is a migrated thread and some comments may be shown as answers.

[Solved] Object reference not set to an instance of an object. NullReferenceException unhandled.

0 Answers 32 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nancy
Top achievements
Rank 1
Nancy asked on 20 Oct 2012, 08:30 AM
I am using Telerik menu and for this i am getting error as "Object reference not set to an instance of an object" when first page is getting loaded.

@(Html.Telerik().Menu()
                    .Name("menu")                   
                    .BindTo(MyApp1.Structure.Authorization.GetMenu())
                    .HtmlAttributes(new { style = "float: left;" })
                )  

where GetMenu() method is defined in Authorization class of Structure folder.
Tags
Menu
Asked by
Nancy
Top achievements
Rank 1
Share this question
or