开发者

master page onmenuitemdatabound event fires before page pre_render event?

I have a master page with a menu:

<asp:Menu ID="MainMenu" runat="server" Orientation="Horizontal"
DataSourceID="HAPSMainMenu" 
MaximumDynamicDisplayLevels="3" DynamicEnableDefaultPopOutImage="true" 
StaticEnableDefaultPopOutImage="false" 
CssClass="mainMenu" DynamicVerticalOffset="1" 
DynamicHorizontalOffset="0" 
OnMenuItemDataBound ="mainMenu_DataBound" Height="18pt" Width="100%">

I want to perform some action on the content page, after OnMenuItemDataBound is performed in the master page.I tried in the prerender of 开发者_开发技巧content page but it doesnt work.


According to this post OnXXXX of controls comes before Page.PreRender


You might want to raise an custom event from Master upon menudataboune and have your page subscribe to that event.

Or explain more on what is not working and what behavior are you expecting? Any more details?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜