开发者

MenuItemClick Event Not firing

开发者 https://www.devze.com 2022-12-25 08:22 出处:网络
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 clickin

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消