如何从众多网站地图中选择(asp.net) [英] How to select sitemap from many (asp.net)

查看:49
本文介绍了如何从众多网站地图中选择(asp.net)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨每一个......



我有两个主页1用于学生,另一个用于管理员,每个母版页都有自己的站点地图以及何时导航从管理员到学生,它显示管理员而非学生的站点地图。



当我导航到另一个母版页时,如何分离两个站点地图

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

推荐答案

这个问题对我来说有点不合时宜。我根本不会分开管理员和用户页面。 站点地图是站点地图,根据它的想法,它应该显示所有内容。这不是一个灵活的设计。如果你介绍是的另一个用户的角色怎么办?你打算做什么?



在我看来,最自然的方法就是:你设计统一所有用户的页面。 (当然,有些用户永远不会获得某些页面的链接,但您不应该依赖它:您应该假设任何用户都会尝试通过直接键入任何URI来导航到任何页面。)对于任何页面,您只能生成内容的子集,具体取决于当前用户。如果用户和管理员的内容看起来完全不同,则可以使用此方法:您仍然可以单独使用学生部分和管理部分,并且每个HTTP请求仅生成一个部分,具体取决于角色。



只是其中一个可能的想法。我确实理解每种设计的便利性和可支持性取决于具体内容的具体特征。



-SA
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


用户和管理员只是一个概述,以便你可以看到我在说什么。



我的实际项目是。



*我有管理员,客人和使用该系统的学生,因此学生,客人和管理员的功能完全不同 -

*每次一个人访问网站,他们作为访客访问,他们有自己的站点地图,当他们想要以学生身份登录时,他们也会得到他们不同的站点地图。

*所以我想要的就是分开登录时的站点地图。
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.


这篇关于如何从众多网站地图中选择(asp.net)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆