| | |
Working with ASP.Net 2.0 Membership Classes - Shalivn
Please support our ASP.NET advertiser: Intel Parallel Studio Home
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
1. lstRoles.DataSource = Roles.GetAllRoles(); DataBind(); 2. Roles.CreateRole("Admin"); 3. lstUsers.DataSource = Membership.GetAllUsers(); DataBind(); 4. Membership.DeleteUser("Anish"); 5. Mebership.GetNumberOfUsersOnline();
Similar Threads
- Using classes in website of asp.net 2.0 (ASP.NET)
- ASP.NET Panel DefaultButton not working (ASP.NET)
- asp.net membership link to database not working (ASP.NET)
- got the asp.net membership/login blues. (ASP.NET)
- This ASP.NET page is not working...!!! SOS (ASP.NET)
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol ajax alltypeofvideos appliances application asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox commonfunctions control dataaccesslayer database datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose feedback fileuploader fill findcontrol flash form formatdecimal formview google gridview gudi iis image javascript listbox login microsoft mobile mono mouse mssql news novell numerical opera panelmasterpagebuttoncontrols parent radio redirect registration relationaldatabases reportemail save schoolproject search security select sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio web webapplications webdevelopemnt webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers



