Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

sitemap

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Claudia Fong - 12 Mar 2008 11:32 GMT
I have a sitemap in my asp.net application and currently if I don't want
to show some of the buttons, I will put a comment of the node that I
don't want to be show, but I was wondering if I can control this in the
web.config instead of hard coded in the actual sitemap
Please see below the code

Cheers

  Claudia

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode url="~/Default.aspx" title="Home"  description="">
        <!--siteMapNode url="~/Overview.aspx" title="Overview"
description="btnOverview.gif">
        </siteMapNode>
        <siteMapNode url="~/Orders.aspx" title="Orders"
description="btnOrders.gif">
        </siteMapNode>-->
        <siteMapNode url="~/Move.aspx" title="Move" description="btnMove.gif">
        </siteMapNode>
        <siteMapNode url="~/Logout.aspx" title="Logout"
description="Logout.gif">
        </siteMapNode>
    </siteMapNode>   
</siteMap>

Cheers!

   Claudi
Cowboy (Gregory A. Beamer) - 12 Mar 2008 18:27 GMT
Offhand, no.

There are ways to kludge this with things like resource key (then a 1x1
clear pixel graphic?), but the best method is to set up a custom provider if
you want to step outside the box like this. Of course, if showing or not
showing is based on a user's identity, roles works nicely, but you are then
pulled into either the ASP.NET Membership classes or a custom Membership
provider.

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************

| Think outside the box!

*************************************************
>I have a sitemap in my asp.net application and currently if I don't want
> to show some of the buttons, I will put a comment of the node that I
[quoted text clipped - 28 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.