Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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

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.
 
Share this answer
 
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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900