Re: ASP.NET Menu control, dynamic menu link to nowhere

Ron Young <[email protected]> Tue, 1 Jul 2008 12:08:43 -0500
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <[email protected]>
Forgot to mention that I'm faking the url by appending a meaningless querys=
tring parameter to it. May have to stick with that if there isn't something=
 else.

I guess I'll probably have to get with the devs on the team and tell them w=
e need to 1) rethink the menu structure, or 2) let the meaningless querystr=
ing param mean nothing.

________________________________________
From: Discussion of building .NET applications targeted for the Web [DOTNET=
[email protected]] On Behalf Of Ron Young [[email protected]=
]
Sent: Tuesday, July 01, 2008 12:02 PM
To: [email protected]
Subject: [DOTNET-WEB] ASP.NET Menu control, dynamic menu link to nowhere

I need to display a dynamic menu that has a structure like so:

Programs
   - Multi-Family
          - Projects
   - Residential
          - Projects

Where "Multi-Family" is a sub-menu under Programs, and "Projects" is a sub-=
menu under Multi-Family, and similar for Residential.

I'm using ASP.NET Menu and a sitemap file.

Problem is that I need "Multi-Family" and "Residential" to link to nowhere:

siteMapNode url=3D"Main.aspx" title=3D"Programs"
     - siteMapNode url=3D"" title=3D"Multi-Family"
           - siteMapNode url=3D"Main.aspx?view=3DMultiFamilyProjects" title=
=3D"Projects"
    -  siteMapNode url=3D"" title=3D"Residential"
           - siteMapNode url=3D"Main.aspx?view=3DResedentialProjects" title=
=3D"Projects"

Using an empty string for "url" works for me, but the issue is that the "te=
xt" cursor will display if the link doesn't have a url.

I tried some CSS but that didn't work:

.dynamicMenutItem{ cursor: pointer; }

Faking the url with "javascript:;" won't work because the each node needs a=
 unique url.

Any info on this is greatly appreciated.

Ron

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This list is hosted by DevelopMentor=AE  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This list is hosted by DevelopMentor=AE  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com