•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 331,472 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,045 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Web site Administration Tool is accessible only from the hosting server. Many times programmers won't have direct access to the the hosting server. So knowledge of ASP.Net Membership classes is an added advantage in creating an administrative module for the site.
In this code snippet we will take up:
1. Listing all roles
2. Creating a role
3. Listing all users
4. Deleting a user
5. Listing Number of users online
In this code snippet we will take up:
1. Listing all roles
2. Creating a role
3. Listing all users
4. Deleting a user
5. Listing Number of users online
Last edited : Mar 26th, 2008.
1. lstRoles.DataSource = Roles.GetAllRoles(); DataBind(); 2. Roles.CreateRole("Admin"); 3. lstUsers.DataSource = Membership.GetAllUsers(); DataBind(); 4. Membership.DeleteUser("Anish"); 5. Mebership.GetNumberOfUsersOnline();
Post Comment
•
•
•
•
DaniWeb Marketplace (Sponsored Links)