Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 11, 2009 07:16 AM by konanki
0 Points
13 Posts
Jul 31, 2008 09:34 AM|LINK
Hi all,
I have created a menu with sitemap as datasource. Everything is fine except that when I click on a menu item a postback occurs but it does not hit the menu1_menuitemclick method.
<
</
is there anything that i might have missed out?
postback menu control
Contributor
6198 Points
1239 Posts
Mar 11, 2009 07:16 AM|LINK
Hi,
do like below
Hope it will work.....
dilsen
0 Points
13 Posts
Postback occurs but MenuItemClick event not fired
Jul 31, 2008 09:34 AM|LINK
Hi all,
I have created a menu with sitemap as datasource. Everything is fine except that when I click on a menu item a postback occurs but it does not hit the menu1_menuitemclick method.
<body><
form title="test" runat="server" action="Menu.aspx"> <div id="SampleMenu"> <asp:menu runat="server" id="Menu1" datasourceid="ExampleSiteMapDS" cssselectorclass="PrettyMenu" orientation="Horizontal" EnableViewState="False" OnMenuItemClick="Menu1_MenuItemClick" > <DynamicHoverStyle BackColor="White" Font-Italic="False" Font-Overline="False" /> <DataBindings> <asp:MenuItemBinding DataMember="SiteMapNode" TextField="Title" /> </DataBindings> </asp:menu>
<asp:sitemapdatasource runat="server" id="ExampleSiteMapDS" sitemapprovider="ExampleSiteMapProvider" showstartingnode="False" /> </div></
form></body>is there anything that i might have missed out?
postback menu control
konanki
Contributor
6198 Points
1239 Posts
Re: Postback occurs but MenuItemClick event not fired
Mar 11, 2009 07:16 AM|LINK
Hi,
do like below
<
asp:Menu ID="EmployeeMenu" runat="server" StaticEnableDefaultPopOutImage="true" DataSourceID="EmpLink" DynamicEnableDefaultPopOutImage="true" DynamicTopSeparatorImageUrl="../INCLUDES/IMAGES/bullet.gif" DynamicHoverStyle-BackColor="#8FB6D7" DynamicMenuItemStyle-BackColor="#E2F4FE" OnMenuItemClick="EmployeeMenu_MenuItemClick" >
<DataBindings > <asp:MenuItemBinding DataMember="siteMapNode" TextField="title" ValueField="Url" NavigateUrlField="Url" /> </DataBindings></
asp:Menu>Hope it will work.....