472,805 Members | 848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 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 2182
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
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.