how to get the role of an user?

Discussion in 'ASP .Net' started by Chris, Jun 18, 2007.

  1. Chris

    Chris Guest

    Hi,

    i want to get the role of an logged user.
    All i found is the function InRole, but it doesn't give the role of the
    user.

    dim rl as rolegroep
    rl = user.InRole( ...

    Thanks
    Chris
    Chris, Jun 18, 2007
    #1
    1. Advertising

  2. Hello Chris,

    http://aspalliance.com/articleViewer.aspx?aId=553&pId=2
    the method GetRoles

    ---
    WBR, Michael Nemtsev [.NET/C# MVP].
    My blog: http://spaces.live.com/laflour
    Team blog: http://devkids.blogspot.com/

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo

    C> Hi,
    C>
    C> i want to get the role of an logged user.
    C> All i found is the function InRole, but it doesn't give the role of
    C> the
    C> user.
    C> dim rl as rolegroep
    C> rl = user.InRole( ...
    C> Thanks
    C> Chris
    Michael Nemtsev, Jun 18, 2007
    #2
    1. Advertising

  3. Chris

    David Wier Guest

    David Wier, Jun 18, 2007
    #3
  4. Chris

    Chris Guest

    thanks to both

    "David Wier" <> schreef in bericht
    news:%...
    > Check out this page:
    > http://odetocode.com/Articles/428.aspx
    >
    > --
    > David Wier
    > MVP/ASPInsider
    > http://aspnet101.com
    > http://iWritePro.com
    >
    >
    >
    > "Chris" <> wrote in message
    > news:...
    >> Hi,
    >>
    >> i want to get the role of an logged user.
    >> All i found is the function InRole, but it doesn't give the role of the
    >> user.
    >>
    >> dim rl as rolegroep
    >> rl = user.InRole( ...
    >>
    >> Thanks
    >> Chris
    >>

    >
    >
    Chris, Jun 18, 2007
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jesper Stocholm
    Replies:
    2
    Views:
    8,065
    John Saunders
    Aug 23, 2003
  2. Liet Kynes
    Replies:
    0
    Views:
    473
    Liet Kynes
    Nov 26, 2003
  3. Raterus
    Replies:
    1
    Views:
    1,468
    =?Utf-8?B?UmV6YSBOYWJp?=
    Feb 20, 2004
  4. Kursat
    Replies:
    1
    Views:
    299
    Dominick Baier
    May 7, 2007
  5. Bob Sanders
    Replies:
    6
    Views:
    189
    Jacob Basham
    Nov 10, 2007
Loading...

Share This Page