473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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
6 2207
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paul | last post by:
I am trying to get a form to dynamicaly add hidden elements. Below is the function I've created, basicaly it loops thru an array and attempts to add those values to a newly created hidden input...
4
by: ZhangZQ | last post by:
Is it possible to dynamicaly to local and call a function in Win32 dll(not a ..net assembly dll) in C# at run time, for example, a C# program popup a dialogbox to let use input which Win32 dll to...
3
by: peter | last post by:
How to create a class dynamicaly at run-time? Some documentations in MSDN say that it is feasible using the class "TypeBuilder",but I don't know how to do. Is there anyone who can help me? Sample...
3
by: minigitoo | last post by:
Hi I try to get dynamicaly all requests made to DB2 I process like this: 1) I stop then start my instance of database in the db2 control center 2) I use : db2 update monitor switches using...
12
by: Achim Domma (Procoders) | last post by:
Hi, I've seen that there are implementations of Mock objects, which implement interfaces on-the-fly during execution. Could somebody point me to the direction on how to do that in .Net? I...
2
by: Marc Nederhoff | last post by:
Hi all, Is it possible to add the <link rel="stylesheet"....> dynamicaly. All pages in my site use the same style sheet, and I don't want to add the link manualy because of maintenance. Marc
1
by: rangababu | last post by:
hi friends i got a problem in changing the color of the textbox in my code i want color of textbox is changed on clicking a button. can any help me to solve this problem plz hurry up bye
5
tolkienarda
by: tolkienarda | last post by:
hi all i want to be able to create a .htm file using php. i don't know if this is even possible. am wanting to create a site that has the functionality of php but the google searchability of a...
1
by: graphicguru | last post by:
Hi i got some javascript from (*) these site for lock one column with js and header row with css. i am not a programmer i am a designer. i am working in a small company. i don't find such...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.