
Signature
kris@n-sv.com.<Remove This Before Emailing>
Network & Software Integration
www.n-sv.com
"Helping put the pieces of your IT puzzle together"
Hi,
site map can be applied security settings based on in which role users is.
It is called security trimming.
See: http://msdn2.microsoft.com/en-US/library/ms178428.aspx

Signature
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
> Hello,
>
[quoted text clipped - 19 lines]
>
> kris
kfrost - 29 Apr 2006 19:58 GMT
Hmm, walked through that and I guess it's ok if you want to spend the time to
hassle through it. Also, I'm not going to define ASP.Net Roles. This is an
intranet application and we're using security groups to control access.
To verify authorization we use User.IsInRole("Domain\username");
I stilled try following the direction in the link you sent but with
roles="*" on the urls, adding the settings to the web.config blocks the
entire menu. So I assume you have to enable roles which I'm not interested
in doing at this point to try and do something this simple.
So isn't there a simple way to find the menuitem or node in the datasource
and disable just disable it when the page loads?
thanks.

Signature
kris@n-sv.com.<Remove This Before Emailing>
Network & Software Integration
www.n-sv.com
"Helping put the pieces of your IT puzzle together"
> Hi,
>
[quoted text clipped - 26 lines]
> >
> > kris
kfrost - 29 Apr 2006 20:03 GMT
P.S. To enable roles in ASP.Net 2.0, don't you need to have sqlexpress
installed on the server? I'm not sure if the .Net 2.0 framework installs sql
express by default but sqlexpress will not be running on this server.
Again, haven't spent that much time with roles and don't really care to in
this project.
So that puts me back to the original question and is there a way to disable
a menu item or hide it programmatically when it's populated from a
web.sitemap file?
Thanks.
Teemu Keiski - 30 Apr 2006 08:41 GMT
It would create a local database into App_Data folder.
Yes, if programmatical approach is needed, you certainly can have control
via SiteMap object
For example:
SiteMap.CurrentNode.ReadOnly = True
Here is more about SiteMap:
http://msdn2.microsoft.com/en-us/library/system.web.sitemap(VS.80).aspx

Signature
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
> P.S. To enable roles in ASP.Net 2.0, don't you need to have sqlexpress
> installed on the server? I'm not sure if the .Net 2.0 framework installs
[quoted text clipped - 10 lines]
>
> Thanks.