Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How do I use multiple siteMaps?

Reply
Thread Tools

How do I use multiple siteMaps?

 
 
Tom
Guest
Posts: n/a
 
      07-08-2006
Please forgive me if I have posted to the wrong group. I have been reading
for two days now and everything points to the direction that I can do it but
I can't get any code to work. I an new to .NET so please forgive my
ignorance. Simply put I have a site and the navigation is working fine,
breadcrumb, treeview... Now I just added an "Admin" section (I've got all the
authentication working) and I want to add a few siteMap items to the treeview
ONLY if the user has been authenticated. The link to the "Admin" section is
not public and does not need to be seen by anyone, admin's will know to add
/admin to the url. What I am trying to do is this:

Anonymous users will see:

Home
Item 1
Item 2
Item 3

But Authenticated users I want to see:

Admin Home
Admin Item 1
Admin Item 2
Home
Item 1
Item 2
Item 3

How do I achieve this? I'm lost, I'm new so lots of code will help!

Thanks,
Tom

 
Reply With Quote
 
 
 
 
Gary Vidal
Guest
Posts: n/a
 
      07-24-2006
You could use the roles attribute on the sitemap
where you define the roles for each page.
Or you could use a LoginView control to present the appropriate menus


--
Gary Vidal
"Tom" <> wrote in message
news:5EAA06EE-AB76-431E-BB2E-...
> Please forgive me if I have posted to the wrong group. I have been
> reading
> for two days now and everything points to the direction that I can do it
> but
> I can't get any code to work. I an new to .NET so please forgive my
> ignorance. Simply put I have a site and the navigation is working fine,
> breadcrumb, treeview... Now I just added an "Admin" section (I've got all
> the
> authentication working) and I want to add a few siteMap items to the
> treeview
> ONLY if the user has been authenticated. The link to the "Admin" section
> is
> not public and does not need to be seen by anyone, admin's will know to
> add
> /admin to the url. What I am trying to do is this:
>
> Anonymous users will see:
>
> Home
> Item 1
> Item 2
> Item 3
>
> But Authenticated users I want to see:
>
> Admin Home
> Admin Item 1
> Admin Item 2
> Home
> Item 1
> Item 2
> Item 3
>
> How do I achieve this? I'm lost, I'm new so lots of code will help!
>
> Thanks,
> Tom
>



 
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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Builtn super() function. How to use it with multiple inheritance? Andwhy should I use it at all? Lacrima Python 43 08-02-2010 09:28 PM
Multiple ISPs and Multiple IP Ranges from Each ISP Chennak Cisco 10 06-08-2005 09:29 PM
IP Address Scheme for Multiple DMZs on Multiple PIXs Scotchy Cisco 2 10-07-2004 03:35 PM
Re: One solution containing multiple projects and multiple hosts Stephen Miller ASP .Net 0 06-24-2003 12:55 PM



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