| | |
Working with ASP.Net 2.0 Membership Classes - Shalivn
Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
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 3.5 activexcontrol ajax alltypeofvideos asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer c# c#gridviewcolumn cac checkbox class commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formatdecimal forms formview gridview gudi homeedition iis javascript jquery listbox menu microsoft mouse mssql nameisnotdeclared news opera panelmasterpagebuttoncontrols problem redirect registration relationaldatabases reportemail schoolproject security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webdevelopment webprogramming webservice youareanotmemberofthedebuggerusers



