Kyle
Kyle

Reputation: 33741

Override System.Web.Security.Roles functions?

I am using System.Web.Security Membership and Roles, but since my roles are a hierarchy I built my own functions for IsUserInRole() and GetRolesForUser() so I would like to override these two functions in Roles with my functions.

Can someone show me an example of how to do this?

Thanks.

Upvotes: 3

Views: 524

Answers (1)

MrZulu
MrZulu

Reputation: 109

Quick search and found This

I've never done it myself but I've had a quick look and it gives you working examples

Upvotes: 1

Related Questions