CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 8/6/2007 7:33:28 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 54 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
nandhucbm
Asp.Net User
Hide Root Menu8/6/2007 7:33:28 AM

0/0

Hi,

 How to hide root menu on menu control?

I am binding menu control at runtime using xml datasource.

in my xml document <home> is my root element.

XML file content

<?xml version="1.0" encoding="utf-8" ?>

<Home>

<Menu text="My Home Page" url="~/Default.aspx">

<SubMenu text="Change Password" url="~/User/ChangePassword.aspx"></SubMenu>

<SubMenu text="Add Message" url="~/User/AddMessage.aspx"></SubMenu>

</Menu>

<Menu text="News Section" url="#">

<SubMenu text="Add News" url="#"></SubMenu>

<SubMenu text="Delete News" url="#"></SubMenu>

</Menu>

</Home>

It is also showing at runtime.

Home

       My Home Page

       Messages

      ............ etc

i used staticdisplaylevels=2.

how can i hide that root element HOME?

Thanks.


Nanda kumar R | eMantras | Programmer
Biser
Asp.Net User
Re: Hide Root Menu8/6/2007 9:25:47 AM

0/0

HI

 Add ShowStartingNode="False" to your SiteMapDataSource

<asp:SiteMapDataSource ID="SiteMapDataSource1"  runat="server" ShowStartingNode="False"/> 


Please remember to click "Mark as Answer" on this post if it helped you.
nandhucbm
Asp.Net User
Re: Hide Root Menu8/7/2007 3:44:57 AM

0/0

Thanks for your response.

I am using XmlDatasource.

How can i use?

Thanks. 


Nanda kumar R | eMantras | Programmer
Amanda Wang - M
Asp.Net User
Re: Hide Root Menu8/8/2007 4:13:18 AM

0/0

Hi,

You ca use the xpath property of xmldatasource.

  XPath can be used to filter the data contained by the Data property or by the XML file indicated by the DataFile property.  

You can read more about the XPath  in this MADN article: http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.xmldatasource.xpath.aspx

 

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
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Alan Simpson's Windows Vista Bible Authors: Alan Simpson, Todd Meister, Pages: 1176, Published: 2007
Macromedia Dreamweaver MX: Training from the Source Authors: Khristine Annwn Page, Safari Tech Books Online, Pages: 549, Published: 2003
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Stealing the Network: How to Own the Box Authors: Ryan Russell, Jeff Moss, Pages: 448, Published: 2003
Configuring ISA Server 2000: Building Firewalls for Windows 2000 Authors: Thomas W. Shinder, Debra Littlejohn Shinder, Martin Grasdal, Pages: 512, Published: 2001
Dreamweaver MX 2004: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 836, Published: 2004
A Practical Guide to Red Hat Linux 8: Fedora Core and Red Hat Enterprise Linux Authors: Mark G. Sobell, Pages: 1616, Published: 2003
Dreamweaver 8: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 936, Published: 2006
Dreamweaver 8: The Missing Manual Authors: David Sawyer McFarland, David Pogue, Pages: 936, Published: 2006

Web:
hide root menu item (no sitemapdatasource used!) - .NET ASP hide root menu item (no sitemapdatasource used!). Get answers to your questions in our .NET ASP forum.
hide root menu item (no sitemapdatasource used!) Talk about hide root menu item (no sitemapdatasource used!) ... my 2.0 menu control has this root node which I want to hide ...
Hide root node only for Menu control - ASP.NET Forums I've been having some issues trying to hide my root node in my Menu control. My different combinations of "ShowStartingNode" and ...
PMM User Guide: Editing Horizontal Root Menu Width We'll create a rule that sets the root menu item width to auto and we'll use a filter hack to hide it from Mac IE5. Open your P7pm css file and make a new ...
Jack Tanner - Re: Show Root Window/Hide Root Window --> [Checked ... I was just about to remove the tray menu icon's "Show Root Window" and "Hide Root Window" items and add a single checked or unchecked item called "Show Root ...
Hide Root Menu - ASP.NET Forums Hide Root Menu. Last post 08-08-2007 12:13 AM by Amanda Wang - MSFT. ... How to hide root menu on menu control? I am binding menu control at runtime using ...
YouTube - Scarface DVD Root Menu Intro Scarface DVD Root Menu Intro. ... blackmassus (4 months ago) Show Hide. Marked as spam. Reply. You want the track please p.m me and i will send u. ...
Projectseven.com - Tutorials: Root Menu Images for Pop Menu Magic We'll assign CSS background images for the root-level links in a Pop Menu Magic menu. The images will contain both the default and hover states - stacked ...
Hide a DFS root: Remote File Systems; File and Storage Services In the console tree, click the DFS root. On the Action menu, click Hide Root. A dialog box will appear, asking if you want to hide the root. Click Yes. ...
Alex' tech notes: Remove home or root from sharepoint menu Simple trick to hide root menu from sharepoint in the "asp:SiteMapDataSource" add "ShowStartingNode="false"". like in:. Posted by Alexandre at Thursday, ...




Search This Site:










configuration problem

does dottext support using multople blogs under a subdomain like blogs.mydomain.com?

databinding a list box

reload a createuserwizard control

accessing content page control from master page

integrated windows authentication

usercontrol in a formview

getting rid of portalcfg.xml by using db

date and region question!

(again) - rounded borders for modules ?

showing null values

outlook and dnn

deleting data

login

odd behavior when using request.params

databinding wipes data from member variables

my skin won't work with its css

schedule emails w/out windows scheduler.

website: problem with progress bar (status bar)

open new file

pa installation feature request

inheritance, classes etc

news_edit.aspx page and html markup

how do you keep your table size or text from overflowing to the side?

namespace 'system.data'

securityexception

ldap and dotnetnuke

wikipedia parser in .net??

sql server 2000

'asp' is an unrecognized tag prefix or device filter

 
All Times Are GMT