Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I just created an new Windows Form application, users must login by username and password. Can I communicate the user data to a internet instance login?

Thanks in advance!
Posted
Updated 5-Apr-11 23:39pm
v2
Comments
Kim Togo 6-Apr-11 9:23am    
Yes you can. One way is build some Web service interface and have the Windows Form use the Web service to verify correct username and password. Try to google it :-)
Sergey Alexandrovich Kryukov 6-Apr-11 14:30pm    
Would you make an Answer out of it?
--SA
Kim Togo 7-Apr-11 2:34am    
Sorry no. I have never had the need to build something like this before. But Solution 2 is very interesting, but a bit to complex.
Sergey Alexandrovich Kryukov 7-Apr-11 2:51am    
It's your choice, nothing to be sorry about. What I actually meant was just posting what you already say in the form of the Answer. Just the idea. It makes sense.
--SA
Kim Togo 7-Apr-11 3:06am    
Okay, I will try to make an Answer :-)

You can do it on different levels.
Please see:
how i can send byte[] to other pc[^]
Communication b/w two Windows applications on LAN.[^]

—SA
 
Share this answer
 
Comments
Espen Harlinn 6-Apr-11 16:02pm    
Nice info on communication, 5ed :)
Sergey Alexandrovich Kryukov 6-Apr-11 16:05pm    
Hi Espen! Thank you.
--SA
Albin Abel 7-Apr-11 2:29am    
Good information. 5
Sergey Alexandrovich Kryukov 7-Apr-11 2:31am    
Thank you, Albin.
--SA
This MSDN article provides an interesting approach:
Unify Windows Forms and ASP.NET Providers for Credentials Management
[^]

Best Regards
Espen Harlinn
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 7-Apr-11 1:04am    
Well, interesting article, my 5.
--SA
Albin Abel 7-Apr-11 2:28am    
My 5. Interesting and definitely help OP. Haven't used this so my homework is this today :)
Kim Togo 7-Apr-11 2:37am    
Interesting article Espen. I think it may be bit to complex?
Member 7762422 7-Apr-11 3:49am    
I try this one although of it's complex I like that :-)
Yes you can. One way is build some Web service interface and have the Windows Form use the Web service to verify correct username and password. Try to google it :-)

If you already have a web server running, you can build a web service that takes an username and password as parameter and if username and password validates, you can return a token (an unique string for that login) to your Windows Form app.

Very time the Windows Form app whats to call another function at the web server, it has to supply the token.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900