Click here to Skip to main content
13,087,797 members (81,162 online)
Rate this:
Please Sign up or sign in to 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 30-Apr-13 4:14am
Rate this: bad
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.

Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 2 May 2013
Copyright © CodeProject, 1999-2017
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