Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

role class for windows form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam Right - 20 Feb 2008 17:47 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.