Windows Form与Internet实例之间的通信 [英] Communication between Windows Form and Internet instance

查看:81
本文介绍了Windows Form与Internet实例之间的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我刚刚创建了一个新的Windows Form应用程序,用户必须通过用户名和密码登录.我可以将用户数据传达给Internet实例登录名吗?

在此先谢谢您!

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!

推荐答案

您可以在不同级别上进行操作.
请参阅:
如何将byte []发送到另一台PC [ ^ ]
在局域网上与两个Windows应用程序进行通信. [ ^ ]

—SA
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


此MSDN文章提供了一种有趣的方法:
统一Windows窗体和ASP.NET提供程序以进行凭据管理
[ ^ ]

最好的问候
Espen Harlinn
This MSDN article provides an interesting approach:
Unify Windows Forms and ASP.NET Providers for Credentials Management
[^]

Best Regards
Espen Harlinn


是的.一种方法是构建一些Web服务接口,并使Windows窗体使用Web服务来验证正确的用户名和密码.尝试用Google搜索它:-)

如果您已经在运行Web服务器,则可以构建一个以用户名和密码作为参数的Web服务,并且如果用户名和密码经过验证,则可以将令牌(该登录名的唯一字符串)返回到Windows Form应用程序. br/>
Windows Form应用程序在Web服务器上调用另一个功能时,它必须提供令牌.
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.


这篇关于Windows Form与Internet实例之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆