CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 11/21/2007 10:24:06 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 56 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
parevr23
Asp.Net User
SiteMap menu - Parent node with no URL11/21/2007 10:24:06 PM

0/0

Hello,

I create a sitemap to drives my website menu. I would like to have a a parent menu call Administration with submenus under it. I wanted the Administration to be a truly parent menu without a link to any page but when I take out the URL from the sitemap the Administration menu is not shown any more.

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
 <siteMapNode title="Root" url="~/" description="It cannot be removed because the menu will fail" >
  <siteMapNode title="Home" url="~/Homepage.aspx" description="Home" roles="*" />
  <siteMapNode title="Administration" url="" description="Administration">
   <siteMapNode title="Facility Accounts" url="~/Restricted/Facility.aspx"  description="Facility Accounts" />
   <siteMapNode title="User Accounts" url="~/Restricted/User.aspx"  description="User Accounts" />
  </siteMapNode>
  <siteMapNode title="Logout" url="~/Restricted/Logout.aspx" roles="Physician,Physician Designate,Client Analyst,Association Analyst,Association Administrator,MMS Super User,Client Analyst,Association Analysts,Buyer" />
 </siteMapNode>
</siteMap>   

Any help will be appreciated.

srinathgnath
Asp.Net User
Re: SiteMap menu - Parent node with no URL11/22/2007 3:50:10 AM

0/0

 Hi there,

As i understood from your post is that you want to remove the link from Administration Node.


This is can be done by remove the attribute "Url"...

 

 

 Srinath

Dont forget to click "Mark as Answer" on the post that helped you.
It marks your thread as Resolved so we will all know you have been helped.


 

Amanda Wang - M
Asp.Net User
Re: SiteMap menu - Parent node with no URL11/23/2007 4:28:02 AM

0/0

Hi,

Base your description, do you want to make the Administration have no link, right?

You can make Administration's Selectable is false in the menu's MenuItemDataBoundevent. Like below:

 protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
    {
          if (e.Item.Text == "Home")
        {
                      e.Item.Selectable = false;
        }
    }

 

Hope it helps.


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
parevr23
Asp.Net User
Re: SiteMap menu - Parent node with no URL11/26/2007 2:16:05 AM

0/0

Yes that was my problem, thanks for your help on this!

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Security, Membership, and Role Management Authors: Stefan Schackow, Pages: 611, Published: 2006
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Professional C# 2005 with .NET 3.0 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Pages: 1748, Published: 2007
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, David Sussman, Chris Ullman, Pages: 735, Published: 2006
Professional ASP.NET 2.0 Databases Authors: Thiru Thangarathinam, Pages: 504, Published: 2007
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Professional C# 2005 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones, Pages: 1540, Published: 2006
Professional C# 2008 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Pages: 1782, Published: 2008
Beginning ASP.NET 2.0 Authors: Chris Hart, John Kauffman, Chris Ullman, David Sussman, Pages: 759, Published: 2005

Web:
SiteMap menu - Parent node with no URL - ASP.NET Forums Re: SiteMap menu - Parent node with no URL. 11-21-2007, 10:50 PM ... Re: SiteMap menu - Parent node with no URL. 11-22-2007, 11:28 PM ...
menu with sitemap without parent node - ASP.NET Forums Re: menu with sitemap without parent node ... ...
Bilal Haidar [MVP, MCT] : Update on Website Menu + web.sitemap: A ... Aug 25, 2007 ... I have updated the code I presented yesterday in: Website Menu + ... If we are processing the parent node, // then return its url. ...
Jeff Prosise's Blog : Hiding the Root Node from SiteMapPath The handler creates a copy of the site map nodes from the current node up to .... property to false to hide the root node from TreeView and Menu controls. ...
Navigation System Author: Kevin K.M. Chiu Copyright 2000, Cobalt ... This is an example of a site map: Node A has no parent Node B's parent is A Node ... The URL for collapsible list navigation manager is at /nav/cList.php. ...
Site Map Providers NET assumes that each site map node's URL is unique with respect to other URLs in .... Returns null (in Visual Basic, Nothing) if the node has no parent. ...
CodeProject: ASP.NET Menu using Sitemap and MasterPage. Free ... The hierarchy contains a single root node, which is the sole node in the ... Page" url="Main.aspx" /> 4GuysFromRolla.com Nov 30, 2005 ... NavigateUrl = SiteMap.CurrentNode.ParentNode.Url lnkUp. ... By default, this property has a value of -1, meaning that there is no limit; ...
C# Shiznit - Custom SiteMapProvider Incorporates QueryString Reliance What confused me is the fact that I have both a SiteMap and a Menu on the ... Url += qs End If tempNode = tempNode.ParentNode End If End While Return temp ...
Database Driven XmlDataSource The only real problem I’ve had with either the Menu control or the Tree control in . ... Append(url); // title attribute XmlAttribute title = parentNode. ...




Search This Site:










menu control and a sitemap

treeview, nodes, and autogeneratedatabindings

styles

adding a link tag to a master page

how to style dropdownlist?

exception in staticsitemapprovider

getting data form sql server 2005 to a web.sitemap file

specifying path for resources

place a <div>-tag in the content place holder (or other sugestions)

treeview caching problem

hide/show sitemap child accordingly to a querystring parameter

problem with treeview control

sitemap - question!

not display root node in sitemappath

how to set hide the asp:menuitem?

tab style pages and master pages.

bug from menu component in safari browser

how to? - 2 menus as parent/child menu(s)

form id rendered differently in asp.net 2.0

role management in sitemap does not work 100%

another website inside my content tag?

master pages and frames

expand one node at a time in treeview

masterpage and file upload - form problem

expanding two (2) treeview with the same hyperlink without postback.

nested masterpage :: page_load not fire

positioning contentsplaceholder on master page

menuing in a master page

menu control cannot work in netscape browser?

custom sqlsitemapprovider and external links

  Privacy | Contact Us
All Times Are GMT