Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Authorization with custom role provider

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arne - 17 Aug 2007 02:03 GMT
I want to implement my own role Provider, by subclassing the RoleProvider
class.
How do I instruct .net 2.0 to use my role provider?

Signature

Arne Garvander
Certified Geek
Professional Data Dude

Ladislav Mrnka - 17 Aug 2007 02:12 GMT
Hi Arne,
you will register your new provider in web.config file as follows:

   <roleManager enabled="true" defaultProvider="myNewProvider">
     <providers>
       <clear />
       <add name="myNewProvider" type="MyNamespace.MyProvider, MyLibrary,
Version = 1.0.0.0, Culture=neutral, PublicKeyToken = null" ... />
     </providers>
   </roleManager>

Regards,
Ladislav

> I want to implement my own role Provider, by subclassing the RoleProvider
> class.
> How do I instruct .net 2.0 to use my role provider?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.