Hi All,
is it possible to incorporate the asp.net 2.0 Role class im my windows form
application?
I want to bind the users list of a asp.net 2.0 Role on a windows form, can i
use role Role Management system on windows forms project ?
I can get the list from asp.net pages like that:
Roles.GetUsersInRole("customers")
But how can i get it from windows form ?
Thanks ...
bruce barker - 20 Feb 2008 18:52 GMT
create a webservice that the windows app can call.
-- bruce (sqlwork.com)
> Hi All,
>
[quoted text clipped - 10 lines]
>
> Thanks ...
Peter Bromberg [C# MVP] - 21 Feb 2008 02:57 GMT
See Juval Lowy's article here:
http://msdn.microsoft.com/msdnmag/issues/05/04/Security/
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: htp://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net
> Hi All,
>
[quoted text clipped - 10 lines]
>
> Thanks ...
Marc Gravell - 21 Feb 2008 05:24 GMT
That seems quite an old link; note that VS2008 provides this "out of
the box"; I don't think it supports GetUsersInRole, but it certainly
provides an IPrincipal that will support IsInRole etc (so that your
winform can /consume/ the asp.net login/membership).
If you need more, then add a web-service (as already mentioned), but
be sure to enforce strict security on the security web-service! ;-p
Marc