Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
Hi every one...
 
I have 2 master pages 1 for student and another for administrator, each master page have its own sitemap and when when i navigate from administrator to student, it shows me the sitemap of administrator not student.
 
How do i separate two sitemaps when i am navigating to another masterpage
Posted 30-Apr-13 5:14am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The problem looks somewhat artificial to me. I would not separate admin and user pages at all. And the sitemap is sitemap, by its idea, it should show all the contents. This is not a flexible design. What if you introduce yes another user's role, what are you going to do?
 
In my opinion, the most natural approach would be this: you design unified pages for all users. (Of course, some users will never get links to some pages, but you should not rely on it: you should assume that any user will try to navigate to any page by directly typing any URI.) For any page, you can generate only the subset of the content, depending on the current user. This approach can be used event if the contents for the user and admin look entirely different: you still can have, say, student part and admin part separately, and generate only the one part per HTTP request, depending on the role.
 
Just one of the possible ideas. I do understand that the convenience and supportability of each design depends on the specific features of concrete content.
 
—SA
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

User and Administrator was just an overview so that you can see what m talking about.
 
My actual project is.
 
* I have an administrator, guest and a student that use the system, so the functions of the students, guest and admin are totally different -
* When every one access the website , they access as a guest and they have their own sitemap, when they want to login as student they will also get have their different sitemap.
* so wat I want is to separate the sitemaps when m login.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 265
1 CPallini 235
2 OriginalGriff 233
3 Maciej Los 175
4 George Jonsson 170
0 OriginalGriff 5,305
1 DamithSL 4,382
2 Maciej Los 3,760
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,901


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 2 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100