467,876 Members | 1,217 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,876 developers. It's quick & easy.

Dynamicaly changing site map


I nedd depending on thr user loged in, that the menu binds to a different
site.map file ... can I have multiple site maps in my ASP.NET 2.0 app and
change the file that the SiteMapDataSource is bound to ?

I no, what was a better solution for that with no use of roles features ?

Thanks.

--
Lucas Ponzo
Software Engineering
Override Software
Oct 29 '06 #1
  • viewed: 1900
Share:
6 Replies
Hi Lucas,

You can add multiple sitemap files by adding custom entries to your
web.config file.

After a user has logged on you will presumably have a method for determining
what content to now load. For example, you could use a set of master pages
to display the required menu/mappath/treeview control with the sitemap
definition to use for that person/account type.

The master pages can be nested so that you retain a common theme from a
global master page (used on all pages, regardless of user) and the
sub-master using the appropriate sitemap.

I use a similar system (without logons) for my company site at
www.copeohs.com. What I do here is maintain a "full" sitemap file for the
breadcrumb (sitemappath control) and separate sitemap files for the vertical
side menu. Each section that requires a different side menu has a nested
master page that inherits from a global root masterpage.

The root masterpage applies the header banner and top menu and breadcrumb,
plus placeholders for cascaded use by the nested masterpages. (I also add
placeholders for javascript and meta tags).

So for a fairly large site I only have a handful of masterpages and
corresponding sitemap files.

Hope that provides some inspiration!

Al
"Lucas Ponzo" <lu********@nospam.nospamwrote in message
news:A3**********************************@microsof t.com...
>
I nedd depending on thr user loged in, that the menu binds to a different
site.map file ... can I have multiple site maps in my ASP.NET 2.0 app and
change the file that the SiteMapDataSource is bound to ?

I no, what was a better solution for that with no use of roles features ?

Thanks.

--
Lucas Ponzo
Software Engineering
Override Software

Oct 29 '06 #2
Maybe this can help

http://weblogs.asp.net/dannychen/arc...04/397072.aspx
Lucas Ponzo wrote:
I nedd depending on thr user loged in, that the menu binds to a different
site.map file ... can I have multiple site maps in my ASP.NET 2.0 app and
change the file that the SiteMapDataSource is bound to ?

I no, what was a better solution for that with no use of roles features ?

Thanks.

--
Lucas Ponzo
Software Engineering
Override Software
Oct 29 '06 #3

Alec,

I'll study a solution like that, and do some tests.

Thanks very much for your help.

--
Lucas Ponzo
Software Engineering
Override Software
"Alec MacLean" wrote:
Hi Lucas,

You can add multiple sitemap files by adding custom entries to your
web.config file.

After a user has logged on you will presumably have a method for determining
what content to now load. For example, you could use a set of master pages
to display the required menu/mappath/treeview control with the sitemap
definition to use for that person/account type.

The master pages can be nested so that you retain a common theme from a
global master page (used on all pages, regardless of user) and the
sub-master using the appropriate sitemap.

I use a similar system (without logons) for my company site at
www.copeohs.com. What I do here is maintain a "full" sitemap file for the
breadcrumb (sitemappath control) and separate sitemap files for the vertical
side menu. Each section that requires a different side menu has a nested
master page that inherits from a global root masterpage.

The root masterpage applies the header banner and top menu and breadcrumb,
plus placeholders for cascaded use by the nested masterpages. (I also add
placeholders for javascript and meta tags).

So for a fairly large site I only have a handful of masterpages and
corresponding sitemap files.

Hope that provides some inspiration!

Al
"Lucas Ponzo" <lu********@nospam.nospamwrote in message
news:A3**********************************@microsof t.com...

I nedd depending on thr user loged in, that the menu binds to a different
site.map file ... can I have multiple site maps in my ASP.NET 2.0 app and
change the file that the SiteMapDataSource is bound to ?

I no, what was a better solution for that with no use of roles features ?

Thanks.

--
Lucas Ponzo
Software Engineering
Override Software


Oct 29 '06 #4

Hi Tomix,

Let me say if i an correct:

Your sugestion is maintain a full site map and depending on the user, I
change the offset ?

Thanks,

--
Lucas Ponzo
Software Engineering
Override Software
"tomix" wrote:
Maybe this can help

http://weblogs.asp.net/dannychen/arc...04/397072.aspx
Lucas Ponzo wrote:
I nedd depending on thr user loged in, that the menu binds to a different
site.map file ... can I have multiple site maps in my ASP.NET 2.0 app and
change the file that the SiteMapDataSource is bound to ?

I no, what was a better solution for that with no use of roles features ?

Thanks.

--
Lucas Ponzo
Software Engineering
Override Software

Oct 29 '06 #5
Yes, i am going to try i too.
Lucas Ponzo wrote:
Hi Tomix,

Let me say if i an correct:

Your sugestion is maintain a full site map and depending on the user, I
change the offset ?

Thanks,

--
Lucas Ponzo
Software Engineering
Override Software
"tomix" wrote:
Maybe this can help

http://weblogs.asp.net/dannychen/arc...04/397072.aspx
Lucas Ponzo wrote:
I nedd depending on thr user loged in, that the menu binds to a different
site.map file ... can I have multiple site maps in my ASP.NET 2.0 app and
change the file that the SiteMapDataSource is bound to ?
>
I no, what was a better solution for that with no use of roles features ?
>
Thanks.
>
--
Lucas Ponzo
Software Engineering
Override Software
Nov 10 '06 #6

Ok, thanks ... I'll try and update you ... if you have some good news,
please update me ...

Best Regards.

--
Lucas Ponzo
..NET Solutions Architect/Engineer
Override Software
"tomix" wrote:
Yes, i am going to try i too.
Lucas Ponzo wrote:
Hi Tomix,

Let me say if i an correct:

Your sugestion is maintain a full site map and depending on the user, I
change the offset ?

Thanks,

--
Lucas Ponzo
Software Engineering
Override Software
"tomix" wrote:
Maybe this can help
>
http://weblogs.asp.net/dannychen/arc...04/397072.aspx
>
>
Lucas Ponzo wrote:
I nedd depending on thr user loged in, that the menu binds to a different
site.map file ... can I have multiple site maps in my ASP.NET 2.0 app and
change the file that the SiteMapDataSource is bound to ?

I no, what was a better solution for that with no use of roles features ?

Thanks.

--
Lucas Ponzo
Software Engineering
Override Software
>
>

Nov 10 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by minigitoo | last post: by
12 posts views Thread by Achim Domma (Procoders) | last post: by
2 posts views Thread by Marc Nederhoff | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.