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 / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

User login in windows forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ricardo Luceac - 03 Oct 2007 19:11 GMT
Hi all...

I'm been working with asp.net and I use the membership and roles
providers that are built in controls..

Now I need do do an windows application, I've not found these controls
in c#...

Is there any controls or I have do do it myself??? And how to secure
things like menu itens based on the roles the user is in???

thx...
amdrit - 03 Oct 2007 20:29 GMT
WinForms is a whole different beast than Webforms.  Security on the client
PC is usually implied by the security token of the logged in user (NTLM,
system.sercurity namespace).  So no, there are no out of the box solutions
for security controls in Visual Studio for WinForms applications.

In the event when you require to use credentials that are not managed by
their local machine or network, the mechanism for validating those
credentials is much different.

Some things in ASP.Net made life easy for the developer, while back in
WinForms those components are thought of as mere facades to the
functionality you seek.  Think of what is occuring when you use role based
security and all the moving and governing components.  Then write your own
framework and facades to match it.

I don't have good answers for you, and I apologize.

> Hi all...
>
[quoted text clipped - 10 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
Peter Bromberg [C# MVP] - 03 Oct 2007 21:45 GMT
In a windows forms application, the "credentials" are the indentity of the
person who signed into that particular computer that the application is
installed on.
If you need to do some sort of special "roles / authorization" with your
app, it would probably have to make a call to a remote webservice to "log in"
and you could then control it that way. But, you'll need to "roll your own".
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Hi all...
>
[quoted text clipped - 10 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***

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.