MenuItemClick not firing on MasterPage with SiteMap
-
I'm trying to get some custom control on my MasterPage to happen on the click event on my menu control based on a SiteMap. It's never hitting the MenuItemClick code. Any ideas? In master page: In master page cs: protected void Menu2_MenuItemClick(Object sender, MenuEventArgs e) { lblTest.Text = e.Item.ValuePath; }
Thanks, Jessica
-
I'm trying to get some custom control on my MasterPage to happen on the click event on my menu control based on a SiteMap. It's never hitting the MenuItemClick code. Any ideas? In master page: In master page cs: protected void Menu2_MenuItemClick(Object sender, MenuEventArgs e) { lblTest.Text = e.Item.ValuePath; }
Thanks, Jessica
I'm trying to get some custom control on my MasterPage to happen on the click event on my menu control based on a SiteMap. It's never hitting the MenuItemClick code. Any ideas? In master page: In master page cs: protected void Menu2_MenuItemClick(Object sender, MenuEventArgs e) { lblTest.Text = e.Item.ValuePath; } Thanks, Jessica
-
I'm trying to get some custom control on my MasterPage to happen on the click event on my menu control based on a SiteMap. It's never hitting the MenuItemClick code. Any ideas? In master page: In master page cs: protected void Menu2_MenuItemClick(Object sender, MenuEventArgs e) { lblTest.Text = e.Item.ValuePath; } Thanks, Jessica
-
The page needs to know the event exists. Check Here[^]
"the page"?? The master page? If the menu items are on the page (I don't use a SiteMap), the page fires the click event. But I have to use a SiteMap.
Thanks, Jessica
-
"the page"?? The master page? If the menu items are on the page (I don't use a SiteMap), the page fires the click event. But I have to use a SiteMap.
Thanks, Jessica
-
"the page"?? The master page? If the menu items are on the page (I don't use a SiteMap), the page fires the click event. But I have to use a SiteMap.
Thanks, Jessica
Try this: Click Edit MenuItem Databindings. In the Menu DataBindings Editor, in the Available data bindings drop-down list, select SiteMapNode and click Add. Select TextField in the Data binding properties drop-down list and select Title from the drop-down menu. Click OK. Select the SiteMapDataSource control. In Properties, set ShowStartingNode to False.
-
Thanks. That worked. It modified my aspx menu control by adding the databindings section.
Thanks, Jessica
Thanks. That worked. It modified my aspx menu control by adding the databindings section. Thanks, Jessica
-
Try this: Click Edit MenuItem Databindings. In the Menu DataBindings Editor, in the Available data bindings drop-down list, select SiteMapNode and click Add. Select TextField in the Data binding properties drop-down list and select Title from the drop-down menu. Click OK. Select the SiteMapDataSource control. In Properties, set ShowStartingNode to False.
Thanks. That worked. It modified my aspx menu control by adding the databindings section.
Thanks, Jessica
-
Thanks. That worked. It modified my aspx menu control by adding the databindings section.
Thanks, Jessica
(repost with code) Thanks. That worked. It modified my aspx menu control by adding the databindings section. Thanks, Jessica
-
Thanks. That worked. It modified my aspx menu control by adding the databindings section. Thanks, Jessica
Well the event fires but the redirect doesn't happen. Not much progress.:(
Thanks, Jessica