Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i created this coding of menu bt giving an error to second line 'object referance not set to as instance'

Menu menumaster = (Menu)this.Master.FindControl("Menumaster1");
MenuItemCollection menuItem = (MenuItemCollection)menumaster.Items;
menumaster.Items.RemoveAt(2);
menumaster.Items[1].ChildItems.RemoveAt(1);


pl help
Posted
Comments
Kornfeld Eliyahu Peter 22-Jun-14 2:19am    
Obviously FindControl didn't found 'Menumaster1'! You need to do some debug to check why...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900