Is there a way to call custom method of Custom Role Provider class

Posted by IrfanRaza on Stack Overflow See other posts from Stack Overflow or by IrfanRaza
Published on 2010-04-21T20:17:56Z Indexed on 2010/04/21 20:23 UTC
Read the original article Hit count: 372

Hello friends,

I have created my own custom role provider class "SGI_RoleProvider" and configured properly. Everything is working fine.

Suppose that I have added a public method say "SayHello()", then how can i call that. Because if i am using Roles then the method is not displayed. If i am forcefully using that Roles.SayHello() then compiler gives the error.

Any suggestion how can i call this. Because creating a new instance of SGI_RoleProvider is meaningless.

Thanks for sharing your time.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about roleprovider