I have an ASP.NET menu. I am adding menu items dynamically like below
this.LeftMenu.Items.Add(new MenuItem(Item1, "", "", navigationURL + this.Page.Request.Url.Query.ToString()));
But when click on this menu item, the MenuItemClick event not firing.
Can Anybody help me to solve this issue....?
Thanks in advance
In the menu properties, there must be an autopostback property.... set this property to TRUE.
This might solve your issue !
Edited 4-Oct-12 0:28am
If you are adding menu item dynamically. You should also add event with the menu item like click event and that method should be defined.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)