I am using asp:me开发者_JAVA百科nu
.In this asp menu,on clicking menu item,I want to get the menuitem,and its parent.I tried to use menuitemclick
event. But menuitemclick
event is not firing on clicking menu item.Can any body help?
Most times I see an asp.netter claiming that events aren't firing it's usually because they're re-binding the control every postback. For example they don't have:
if(!IsPostBack){
//... Bind control ...
}
In the PageLoad event which always fires before command events within controls.
精彩评论