none
页面访问权限控制 RRS feed

答案

  • Hi 勾勾の尛指頭,

    这里假设你的CRM系统使用ASP.NET开发的, 对于其他技术Microsoft是不提供支持的. 如果你在这边得不到合适的答案的话可以在中文论坛里面找专门的ASP.NET与Ajax子论坛将你的问题贴出来以便得到更好的支持.

    这边你可以参考一下用户名为sp1234的高手的解释: http://topic.csdn.net/t/20050503/12/3981765.html.
    他提到的主要思路是, 不能单纯只在树形菜中去判断权限, 因为如果只这么做的话访问者通过直接在地址栏输入URL还是可以访问到页面的, 所以在具体页面的Load事件中也应该检查权限.
    具体怎么去判断, 在其中也提到了, 有用Session的也有在Web.config中配置的. 当然用户的角色是存储在数据库中的, 判断权限之前需要读取出来.

    祝你快乐每一天,

    Leo Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    -------------------------------------------------
    This response contains links reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
    2011年9月1日 2:51
    版主

全部回复

  • 构建一个权限类 设置每个页面的权限属性
    I like I DO 微软技术的忠实拥护者大麦 MSN: hesoft@hotmail.com ~~
    2011年8月30日 8:51
  • 您好,基本上基于角色来控制。
    2011年8月31日 13:55
    版主
  • Hi 勾勾の尛指頭,

    这里假设你的CRM系统使用ASP.NET开发的, 对于其他技术Microsoft是不提供支持的. 如果你在这边得不到合适的答案的话可以在中文论坛里面找专门的ASP.NET与Ajax子论坛将你的问题贴出来以便得到更好的支持.

    这边你可以参考一下用户名为sp1234的高手的解释: http://topic.csdn.net/t/20050503/12/3981765.html.
    他提到的主要思路是, 不能单纯只在树形菜中去判断权限, 因为如果只这么做的话访问者通过直接在地址栏输入URL还是可以访问到页面的, 所以在具体页面的Load事件中也应该检查权限.
    具体怎么去判断, 在其中也提到了, 有用Session的也有在Web.config中配置的. 当然用户的角色是存储在数据库中的, 判断权限之前需要读取出来.

    祝你快乐每一天,

    Leo Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    -------------------------------------------------
    This response contains links reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
    2011年9月1日 2:51
    版主