Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Multple roles on a SiteMapNode

Reply
Thread Tools

Multple roles on a SiteMapNode

 
 
Cal Who
Guest
Posts: n/a
 
      02-02-2010
I've been setting one role on a SiteMapNode elements but now I'd like to add
multiple roles to an element.

That is Roles="Admin, Fixer"

I'd do this rather that putting all Admins into the Fixer role.

I've read the documentation and it sounds like a IList constructor would do
it but I can't find out the details.

Is it possible to do and if so, how can I do that?

Thanks


 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      02-02-2010
On Feb 2, 5:43*pm, " Cal Who" <CalWhoNOS...@roadrunner.com> wrote:
> I've been setting one role on a SiteMapNode elements but now I'd like to add
> multiple roles to an element.
>
> That is Roles="Admin, Fixer"
>
> I'd do this rather that *putting all Admins into the Fixer role.
>
> I've read the documentation and it sounds like a IList constructor would do
> it but I can't find out the details.
>
> Is it possible to do and if so, how can I do that?
>
> Thanks


You should be able to specify multiple roles delimited by comma or
semi-colon as you have already.

The SiteMapNode.Roles Property expects an IList of roles of
System.Collections.IList
http://msdn.microsoft.com/en-us/libr...ode.roles.aspx

Hope this helps
 
Reply With Quote
 
 
 
 
Cal Who
Guest
Posts: n/a
 
      02-02-2010

"Alexey Smirnov" <> wrote in message
news:196c2eae-9ab8-436e-a665-...
On Feb 2, 5:43 pm, " Cal Who" <CalWhoNOS...@roadrunner.com> wrote:
> I've been setting one role on a SiteMapNode elements but now I'd like to
> add
> multiple roles to an element.
>
> That is Roles="Admin, Fixer"
>
> I'd do this rather that putting all Admins into the Fixer role.
>
> I've read the documentation and it sounds like a IList constructor would
> do
> it but I can't find out the details.
>
> Is it possible to do and if so, how can I do that?
>
> Thanks


You should be able to specify multiple roles delimited by comma or
semi-colon as you have already.

The SiteMapNode.Roles Property expects an IList of roles of
System.Collections.IList
http://msdn.microsoft.com/en-us/libr...ode.roles.aspx

Hope this helps



==

I had seen that before but did not understand the following which it
includes:

You can use the #ctor(SiteMapProvider, String, String, String, String,
IList, NameValueCollection, NameValueCollection) constructor to supply a
list of roles to the SiteMapNode object when it is first created.

I found "ctor" used many times on the Internet (without the #) but no
definition.

Reading about IList didn't help.

I'll try simply using Roles="Admin, Fixer"

but would feel better about it if I could find some documentation I could
understand.



Thanks







 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      02-02-2010
On Feb 2, 8:22*pm, " Cal Who" <CalWhoNOS...@roadrunner.com> wrote:
>
> I had seen that before but did not understand the following which it
> includes:
>
> You can use the #ctor(SiteMapProvider, String, String, String, String,
> IList, NameValueCollection, NameValueCollection) constructor to supply a
> list of roles to the SiteMapNode object when it is first created.
>
> I found "ctor" used many times on the Internet (without the #) but no
> definition.
>


It's a typo, stays for "constructor", I believe. You can use the
constructor to supply... etc.

IList is a general type of collection.


> Reading about IList didn't help.
>
> I'll try simply using Roles="Admin, Fixer"
>
> but would feel better about it if I could find some documentation I could
> understand.
>
> Thanks


 
Reply With Quote
 
Cal Who
Guest
Posts: n/a
 
      02-02-2010

"Alexey Smirnov" <> wrote in message
news:d6132fbe-613c-4967-a880-...
On Feb 2, 8:22 pm, " Cal Who" <CalWhoNOS...@roadrunner.com> wrote:
>
> I had seen that before but did not understand the following which it
> includes:
>
> You can use the #ctor(SiteMapProvider, String, String, String, String,
> IList, NameValueCollection, NameValueCollection) constructor to supply a
> list of roles to the SiteMapNode object when it is first created.
>
> I found "ctor" used many times on the Internet (without the #) but no
> definition.
>


It's a typo, stays for "constructor", I believe. You can use the
constructor to supply... etc.

IList is a general type of collection.


> Reading about IList didn't help.
>
> I'll try simply using Roles="Admin, Fixer"
>
> but would feel better about it if I could find some documentation I could
> understand.
>
> Thanks



I read the documentation for the SiteMapNode Constructor and then that for
IList and just couldn't justify the a simple comma seperated list would
work. But it does and I just have to await an enlightment in the future.

Thanks a lot




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multple postbacks =?Utf-8?B?QXJnaXJvcA==?= ASP .Net 5 11-11-2005 05:25 PM
ASP.NET 2.0 Beta 1 <siteMapNode> roles="" Jon Edney ASP .Net Security 3 04-12-2005 04:28 PM
Transactions between multple servers. Luis Esteban Valencia ASP .Net 1 10-27-2004 08:14 PM
Downloading Video - How do I combine multple parts. ME Computer Support 2 09-07-2004 06:14 PM
Struts: how to package visual forms used in multple locations davout Java 0 04-30-2004 08:35 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57