AspNetAtoms.com daily updates on ASP.NET Tutorials, Articles, Authors and more. Subscribe to our newsletter and receive updates on ASP.NET resources on the Internet.

Categories

Recent Posts

User Administration Tool (Part 3) : Bipin Joshi

Saturday, May 02 2009

In Part 2 of this series we covered user management features. This final part will deal with role management and profile management. The code gets a list of all the roles defined in the system by calling GetAllRoles() method of the Roles object. The returned roles are supplied as a parameter to a method called FillControlsWithRoles(). This method is discussed shortly and simply fills the CheckBoxList and DropDownList with the roles. The code then proceeds to retrieve a list of roles belonging to the user. This is done by calling GetRolesForUser() method of the Roles object. The for loop iterates through the array of roles returned by the GetRolesForUser() method and checks those roles in the CheckBoxList. Finally ActiveViewIndex property of the MultiView is set to...

Read More:
User Administration Tool (Part 3) : Bipin Joshi
Also See:
ASP.NET Request Logging with Asynchronous Fire And Forget Pattern : Peter A Bromberg
Custom Buttons in the DataList and Repeater : Scott Mitchell
Relative paths in master pages : Swanand Mokashi
Handling Data After Post Back : Bipin Joshi
Including a File Upload Option When Adding a New Record : Scott Mitchell

Post your comment

Comment