By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,394 Members | 1,462 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,394 IT Pros & Developers. It's quick & easy.

Dynamicaly changing site map

P: n/a

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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a

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

P: n/a

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

P: n/a
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

P: n/a

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.