Tweet
SIGN UP
MEMBER LOGIN:
TECHNOLOGIES
Active Directory in VB.NET
ADO.NET in VB.NET
Algorithms and VB.NET
ASP.NET AJAX in VB.NET
ASP.NET Controls in VB.NET
ASP.NET using VB.NET
Assemblies in VB.NET
COM Interop in VB.NET
Cryptography in VB.NET
Crystal Reports in VB.NET
Database & DBA
Deployment in VB.NET
Design & Architecture
DirectX with VB.NET
Enterprise Development
Exception Handling in VB.NET
Games Programming in VB.NET
GDI+ in VB.NET
General
LINQ with VB.NET
Mobile Development in VB.NET
Multithreading in VB.NET
Networking with VB.NET
Office and VB.NET
Printing in VB.NET
Remoting in VB.NET
Reports in VB.NET
Security in VB.NET
Silverlight using VB.NET
Speech in VB.NET
Strings, Arrays in VB.NET
Tablet PC
Tablet PC with VB.NET
VB.NET Articles
VB.NET FAQ
VB.NET How do I
VB.NET Language
VB.NET Tutorials
VBA
Visual Basic 11
Visual Basic 2010
Visual Basic Language
WCF with VB.NET
Web Applications in VB.NET
Web Forms with VB.NET
Web Service in VB.NET
Windows Controls in VB.NET
Windows Forms with VB.NET
Windows Service in VB.NET
Workflow in VB.NET
WPF using VB.NET
XAML in VB.NET
XML in VB.NET
FORUMS
BLOGS
Use of Excel.AddUnique Method in MS Excel to D ...
Use of PPT.ApplyTheme.BackgroundStyle in MS P ...
Use of PPT.InteractWithChartLocation in MS Pow ...
Simple Web Report With Pivot Table and Linq to ...
Print A Chart into a Byte Stream
Using New Audio Player Class With VB.NET
Display Top Ten Percent Item and bottom Ten pe ...
Use of PPT.ConvertTextToSmartArt in MS PowerP ...
How to Find Backup Folder Data Location Using ...
Calendar Control In WPF
Blog
What is Role provider in ASP.NET
Posted by
Sapna
in
Blogs
|
ASP.NET using VB.NET
on
Feb 07, 2011
Learn about the asp.net role management which enables you the easy use of number of different providers in ASP.NET application.
Tweet
2258
0
0
During the development of ASP.NET application, the asp.net role management enables you the easy use of number of different providers. As you can implement your own provider or use the supplied profile providers which are included with the .NET Framework.
Reasons for creating a custom role provider:
To store role information in a data source which doesn't supported by the role providers in the .NET Framework.
To manage role information using a database schema different from the database schema used by the providers in the .NET Framework.
Implementing a role provider:
You need to create a class that inherits the RoleProvider abstract class from the System.Web.Security namespace. The RoleProvider abstract class then inherits the ProviderBase abstract class from the System.Configuration.Provider namespace. Next, you should retrieve the configuration information from the web.config file in the
Initialize
method.
At last, you have to implement
GetRolesForUser
method where you will get all the groups where the current user belongs to.
Thanx.
share this blog :
What is meant by Eventlog in ASP..
.net
post comment
Sponsored by
Become a Sponsor
More Blogs from this Blogger
ComboBox Control in Ajax
String class methods in VB.NET
What is meant by Eventlog in ASP.NET
What is Role provider in ASP.NET
Display a count of user sessions in ASP Web application
Technologies in .NET
Security to Developers
Debugging and Tracing in VB.NET
Methods of XmlTextReader class
An overview of Crystal Report Designer
View All
Latest Blogs
Second Life: Land of the WEAK home of the BROKEN
use of datagrid and sum column in datagrid
Retrieving content of other page using C#
Caching in ASP.NET
Reading a text file in Asp.net
Read Number from a String
Populate combobox from excel
Edit, update and cancel the records in the datagrid.
Sort data in datagrid
Streaming in WCF
View All
Sponsored by
Become a Sponsor