Re: ASP.NET 2.0 Beta 1 <siteMapNode> roles=""
From: Brock Allen (ballen_at_NOSPAMdevelop.com)
Date: 04/12/05
- Next message: Brock Allen: "Re: forms auth - session timeout - multi domains - POST values"
- Previous message: Juan Antonio Tubio: "Re: Protect file with different extension from .aspx"
- In reply to: Jon Edney: "ASP.NET 2.0 Beta 1 <siteMapNode> roles="""
- Next in thread: Jon Edney: "Re: ASP.NET 2.0 Beta 1 <siteMapNode> roles="""
- Reply: Jon Edney: "Re: ASP.NET 2.0 Beta 1 <siteMapNode> roles="""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 12 Apr 2005 08:39:22 -0700
Use "?" for anonymous
-Brock
DevelopMentor
http://staff.develop.com/ballen
> Hi,
>
> I am trying to use a web.sitemap file in ASP 2.0 Beta 1 to limit the
> menu options visible to users. However I have struck a problem. How do
> you use roles= to only show items when there is no user logged in (no
> roles).
>
> For example:
> <siteMapNode url="" id="User" title="User Features"
> description="User
> Features" roles="*">
> <siteMapNode url="~/user/signup.aspx" title="Sign-Up"
> description=""/>
> <siteMapNode url="~/user/forgot.aspx" title="Forgotten
> Password"
> description=""/>
> </siteMapNode>
> <siteMapNode url="" id="User" title="User Features"
> description="User
> Features" roles="members, admin">
> <siteMapNode url="~/user/changepassword.aspx"
> title="Change
> Password" description=""/>
> <siteMapNode url="~/login.aspx" title="Logout"
> description=""/>
> </siteMapNode>
> I am current using roles="*", but this is still visible to the user
> after they have logged in. I only want them to see the options when
> they are not logged in. I guess I need something like
> roles="anonymous".
>
> Thanks for your help.
>
> Jon Edney.
>
- Next message: Brock Allen: "Re: forms auth - session timeout - multi domains - POST values"
- Previous message: Juan Antonio Tubio: "Re: Protect file with different extension from .aspx"
- In reply to: Jon Edney: "ASP.NET 2.0 Beta 1 <siteMapNode> roles="""
- Next in thread: Jon Edney: "Re: ASP.NET 2.0 Beta 1 <siteMapNode> roles="""
- Reply: Jon Edney: "Re: ASP.NET 2.0 Beta 1 <siteMapNode> roles="""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]