I'm using much of your time and because I don't know how to ask the right
question I'm not advancing.
Maybe if I tell you what I've done.
I create the menu using web.sitemap containing a sitemap, and in my master
file
<asp:Menu runat="server" ID="MainMenu" Style="Font-Size:16pt; border-style:
ridge; border-color: Maroon;
border-width: 4px" StaticDisplayLevels="2" DataSourceID="SiteMapDataSource1"
web.site contains these (along with other items):
<siteMapNode title="Options" url="d.aspx">
<siteMapNode title="Black Background" url="a.aspx" />
<siteMapNode title="White Background" url="b.aspx" />
<siteMapNode title="Textured Background" url="c.aspx" />
</siteMapNode>
I know about :
Protected Sub MainMenu_MenuItemClick(ByVal sender As Object, ByVal e As
MenuEventArgs)
and that MenuEventArgs has a text property that I can use to identify which
item was clicked.
But I can't get past the requirement that each siteMapNode have a nonblank
url.
What I need to be able todo when the user clickes and item is to have the
page be unchanged, and have the click event raised or have some routine on
the master run.
Like if I could use for the url *.subroutine1
meaning go to subroutine1 on this page.
got any ideas?
THANKS
"Mark Rae [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "_Who" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>> If the menuitem had a click event to the master code behind I would have
>> used that.
>
> Set the NavigateUrl property to an empty string.
> http://msdn.microsoft.com/en-us/libr...vigateurl.aspx
>
> Use the Value property
> http://msdn.microsoft.com/en-us/libr...tem.value.aspx
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net