Hello,
int this article http://www.aspsnippets.com/Articles/Database-driven-ASPNet-Menu-control-Populating-Menu-items-from-the-Database-in-ASPNet-using-C-and-VBNet.aspx
I am receiving "Object reference not set to an instance of an object" error. It pops up in line Menu1.Items.Add(menuItem) in method called "PopulateMenu"
Does anyone know what could be the problem?
Martin says: menuItem
menuItem
Because menuItem is null
Thank you very much for quick answer. Is it caused because i am calling PopulateMenu(dt, 0, null); ? What should be there instead od null?
Read the article step by step and must check Database tables structure as given in referred article
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.