473,412 Members | 2,142 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

All items show in menu even when roles are specified

I have all the following site map ...

<siteMapNode url="nothing.aspx" title="nothing" description="Home"
roles="">
<siteMapNode url="default.asp" title="Home" description="Home"
roles="" />
<siteMapNode url="test.aspx" title="test" description="test"
roles="test" />
<siteMapNode url="test2.aspx" title="test2" description="test"
roles="test2" />
</siteMapNode>
Both test and test2 show up on the menu when i log in with a user that
has only test as their role. The only way I can make test2 hide based
on role is using the following:
<siteMapNode url="nothing.aspx" title="nothing" description="Home"
roles="">
<siteMapNode url="default.asp" title="Home" description="Home"
roles="" />
<siteMapNode url="test.aspx" title="test1" description="test"
roles="test" />
<siteMapNode title="test2" description="test2">
<siteMapNode url="test2.aspx" title="test2"
description="test2"
roles="test2" />
</siteMapNode>

I am using securityTrimmingEnabled="true" in my web.config. I am not
sure how to make scenerio 1 work without having to add the extra node.

Thanks for your help in advance

Dec 12 '06 #1
1 1657
I think I was able to figure it out

added to web config
<location path="test2.aspx">
<system.web>
<authorization>
<allow users="test2" />
<deny users="*" />
</authorization>
</system.web>
</location>
Chicagoboy27 wrote:
I have all the following site map ...

<siteMapNode url="nothing.aspx" title="nothing" description="Home"
roles="">
<siteMapNode url="default.asp" title="Home" description="Home"
roles="" />
<siteMapNode url="test.aspx" title="test" description="test"
roles="test" />
<siteMapNode url="test2.aspx" title="test2" description="test"
roles="test2" />
</siteMapNode>
Both test and test2 show up on the menu when i log in with a user that
has only test as their role. The only way I can make test2 hide based
on role is using the following:
<siteMapNode url="nothing.aspx" title="nothing" description="Home"
roles="">
<siteMapNode url="default.asp" title="Home" description="Home"
roles="" />
<siteMapNode url="test.aspx" title="test1" description="test"
roles="test" />
<siteMapNode title="test2" description="test2">
<siteMapNode url="test2.aspx" title="test2"
description="test2"
roles="test2" />
</siteMapNode>

I am using securityTrimmingEnabled="true" in my web.config. I am not
sure how to make scenerio 1 work without having to add the extra node.

Thanks for your help in advance
Dec 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ian Hinson | last post by:
The pop-up (drop-down?) menu items that appear in both built-in and custom menubars since Office 2000 now sometimes appear "sunken" and by default are not visible, unless the chevron is clicked at...
1
by: Peter Morris [Droopy eyes software] | last post by:
Hi all In my login form (forms authentication) I check that the login is valid, retrieve an "Author" object, and keep track of the author's roles. string roles; if (author.IsAdministrator)...
10
by: tmaster | last post by:
When I try to dynamically add a second sub menu item to this ContextMenu item, I get an error 'Specified argument was out of the range of valid values'. Private Sub mnuTopics_Show_Select(ByVal...
3
by: WhiteWizard | last post by:
I have an Windows app that allows users to save "bookmarks", on pages they have been to, and then navigate back to them. That all works. In addition, we have restricted them to 15 bookmarks, and if...
4
by: Bob Homes | last post by:
In VB6, I used a system, which I loved, whereby I assigned a "helpId" to each menu item; that way, you could rest the cursor on the item (without actually running it) and then press F1 to get...
5
by: =?Utf-8?B?U2NhbmJveQ==?= | last post by:
Guyz, I want to remove items from the Solution Explorer. The VBE 2005 help system claims that to do this, you have to:- 1. Select the item you want to remove. 2. On the 'Edit' menu,...
2
by: Bruce | last post by:
Hello, I am trying to write a script using SQL Server 2000 to list all of the roles that have any permissions on a specified object (view, table, sp, etc.). Essentially I am trying to script...
13
by: Larry Bud | last post by:
Trying to conditionally remove menu items of the 2.0 .NET menu item control and I'm stumped. This removed a root level item: Menu1.Items.Remove(Menu1.FindItem("Administration")) But this...
13
by: PetterL | last post by:
I writing a program where I read menu items from a file. But I have problem when I click an menu item i want it to mark that one as checked but I cant access the menu object of that item to see...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.