如何授予特定用户的网页访问权限 [英] How to give access for webpages in particular users

查看:106
本文介绍了如何授予特定用户的网页访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的应用程序中,我有4个屏幕,例如page1.aspx,page2.aspx,page3.aspx,Page4.aspx.

我创建了用户设置Web表单,其中admin为只能访问特定页面的用户创建用户名和密码.创建用户设置时,我已使用复选框来选择它们的可访问性,并将其存储在数据库中.
有人帮我
:confused:



In my application i have 4 screens such as page1.aspx, page2.aspx, page3.aspx, Page4.aspx.

I have created user Settings Web Form where the admin Creates username and password for users with access only for particular pages. I have used check boxes to select their accessibility and it''s stored in database while creating user setting.
Anybody help me
:confused:

推荐答案

一种简单的方法是在用户登录时获取该用户的访问详细信息,并将其保留在整个会话中.只需检查用户是否可以在Load事件中访问该页面,然后访问该页面即可.
A simple way is to get that access details of the user when he logs in and keep it throughout the session. Just check if the user has access to the page in the Load event and redirect to appropriate page if not.


这篇关于如何授予特定用户的网页访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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