需要帮助 [英] need a help

查看:97
本文介绍了需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



"Al Salam 3alaykom"

我有一个使用VB.NET开发它的项目,希望您能对我有所帮助.

该项目是一个大学门户网站,我们在其中扮演学生"和老师"两个角色

我的问题是我们如何让每个角色看到具有不同内容的相同页面.

例如:如果学生访问此页面,我们将获得GRADE PAGE,而如果老师访问此页面,则他将能够为学生发布成绩,我们将显示其成绩.

Hi ,

"Al Salam 3alaykom"

I have a project developing it using VB.NET , I hope you can help me.

the project is a college portal where we have two roles "students" and "teachers"

my question is how we can let each role see the same pages BUT with different contents.

For example : we have GRADE PAGE if the student access this page he will see his grades BUT if the teacher access this page he will be able to post the grades for the student.

推荐答案

您可以使用角色并建立条件逻辑来更改角色的查看权限.

请参阅此页面作为角色介绍;
http://www.asp.net/security/tutorials/assigning-roles-to- users-cs [^ ]


抱歉,上面的内容与ASP Web应用程序有关,您将其标记为vb.net,如果您指的是winforms,则可以通过类似的方式实现相同的目的.
You can user the role and build conditional logic to change what the role is or is not allowed to view.

See this page as an introduction to roles;
http://www.asp.net/security/tutorials/assigning-roles-to-users-cs[^]


Sorry the content above relates to ASP web applications, you tagged this as vb.net you can achieve the same thing in a similiar way if you are referring to winforms.


hello

您的查询是在ASP.NET中非常简单的朋友,您可以使用网站管理控件来设置角色,然后使用登录视图控件为您完成此操作,学生和老师将被转移到同一页面,但是当学生将登录后,他将获得不同的视图,反之亦然

转到此链接可获得基本假设
登录控件

和她的登录视图控件说明朋友

登录视图

一旦找到有用的答案,就对我的答案进行评分

谢谢&问候
Radix
hello

your query is very simple friend in ASP.NET you can use the website administration control to set the roles and then use login view control to do this magic for you, the student and teacher will be diverted to the same page but when a student will login he will get a different view and vice versa

go for this link to get the basic assumptions
Login Control

and hers your login view controls description friend

Login View

Do rate my answer once u find it useful

Thanks & Regards
Radix


我认为最好的办法是为每个角色分配一个安全级别,然后创建2个表单.一个给学生,一个给老师.然后,您可以根据当前用户的安全级别显示正确的表单.

快乐编码
I think the best thing to do would be to assign a security level to each role, and then create 2 forms. One for students and one for teachers. Then you can display the correct form depending on the current users security level.

Happy Coding


这篇关于需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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