Role Provider

J

John Yopp

I have created my own custom Membership and Role providers and
everything works fine. However, I want to be able to determine if the
user is in a particular role when I am validating the user. Since this
code is already part of my Role Provide, does anyone know how to
reference the current instance of the Role Provider so that I don't have
to instantiate another instance?

Thanks
 
J

John Yopp

Excellent! Thanks for the help.

I suspected it was as simple as this. But, couldn't find any documentation.

Thanks again Brock.



Brock said:
Roles.Providers["YourProviderID"]



I have created my own custom Membership and Role providers and
everything works fine. However, I want to be able to determine if the
user is in a particular role when I am validating the user. Since
this
code is already part of my Role Provide, does anyone know how to
reference the current instance of the Role Provider so that I don't
have
to instantiate another instance?
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top