Hi all
Please check my code
MainMenu first_menu = new MainMenu();
this.Menu = first_menu;
MenuItem[] secondMenu = new MenuItem[2];
MenuItem menu = new MenuItem(row["CategoryId"].ToString());
secondMenu[0] = menu;
MenuItem Parent_menu = new MenuItem( row["Name_tb"].ToString(), secondMenu);
error happening as object reference does not set to an instance of object
What may be the reason,how to pass value field of menu item in windows application other than this method
Thanks in Advance