can I make use of user.IsInRole without using Membership?

后端 未结 4 1354
情深已故
情深已故 2021-01-14 15:52

I\'m using Forms authentication and I would like to make use of roles, can I somehow set the role of the user without Membership ?

4条回答
  •  执笔经年
    2021-01-14 16:47

    Do you mean "without using ASP.NET's standard Membership implementation"?

    If so, then yes, you can by implementing your own Membership and/or Roles provider. See here and here for details about how to implement a Membership/Roles provider.

提交回复
热议问题