如何在登录到与他有关的页面后重新命名用户 [英] how to redirct a user AFTER login to pages whcih are assinge to him

查看:75
本文介绍了如何在登录到与他有关的页面后重新命名用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的查询的Web应用程序。

1.i在sql数据库名称角色,PageAccess和UserLogin中有3个表。

2.in PageAccess表i网页后面有columne名称。他们的数据类型是bit(布尔值),

3.使用Userlogin表授予用户登录访问权限,其中使用了其名称,密码和角色ID列。

我的问题是如何通过从PageAccess表(通过使用1或0真/假)检查他的状态来重定向到页面我们允许他或拒绝他访问该页面,成功登录后。

管理员可以完全访问所有页面。

如何从一开始我就可以管理它。

解决方案

请看到我对这个问题的回答。解决方案3 [已解决标记]。



在登录Asp.net C#之前无法访问我网站中的任何网页 [ ^ ]

i have web application my query are.
1.i have 3 table in sql database name role,PageAccess,and UserLogin.
2.in PageAccess table i have columne name after web pages.and their data type is bit(Boolean),
3.user login access is granted by using Userlogin table,where its name,password, and role id columns are used.
My Question is that how a user is redirected to a page by checking his status from PageAccess table(where by using 1 or zero true/false)we are allowing him or denying his access to that page, after his successful login.
admin has full access to all pages.
how from start i can manage it.

解决方案

Please see my answer on this question. It is Solution 3 [Solved Marked].

Can not access Any Web Page in my website before Login in Asp.net C#[^]


这篇关于如何在登录到与他有关的页面后重新命名用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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