User and Role Management for an ASP.NET AJAX Server-Centric Based Online Shopping Website (Page 1 of 6 )
This part, the fourth in an eleven-part series, covers part of the background management. By creating roles, we can divide the users into different kinds of roles who hold different rights in the application. By creating background users we can at the same time assign them different kinds of roles to more efficiently control the whole system.
A
downloadable .rar file is available for this article.
Now let’s explore the role-related tasks.
Role Management
Role management is accomplished through the "RoleManage.aspx" page. We can enumerate its functionalities as follows:
Display the present roles in an ASP.NET ListBox control.
Provide hyperlinks to add new roles.
Provide hyperlinks to modify ready roles.
Delete current roles.
Author's Note: I want to stress three points. First, to further enhance the safety of the whole system, this part of role management is designed to be independent of other modules, and i.e. it should be launched independently. Second, this part of role management has also been designed to follow traditional pure ASP.NET models. Thus, we mainly dwell on the operating principles of the modules. Third, although we provide the functionalities of adding, modifying, and deleting roles this is just for more flexibility in real world applications. In this example, however, we are merely concerned with three types of roles: ‘Super Administrator’, ‘Supplier’, and ‘Common Customer’. Although we can change their names, they do take on three different types of roles, which will be more carefully studied in the last part of the sample application.
Next: Role Management >>
More ASP.NET Articles
More By Xianzhong Zhu