在Web应用程序和dektop应用程序之间传递值 [英] pass values between web application and dektop application

查看:83
本文介绍了在Web应用程序和dektop应用程序之间传递值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我可以从asp.net启动桌面应用程序,现在我想在这个Web应用程序和Windows应用程序之间共享一些值。 />


我可以使用任何技巧或提示吗?



谢谢,

Chirag。

Hi,

I am able to launch desktop application from asp.net, Now I want to share some values between this web application and windows application.

Is there any trick or tip that I can use?

Thanks,
Chirag.

推荐答案

使用 WebService [ ^ ]



使用Win Forms和Web窗体的Web服务 [ ^ ]
Go with WebService[^]

Webservice with Win Forms and Web Forms[^]


选项1:

您可以使用Iframe托管网站并在网站中添加隐藏字段以传递数据。



跨域访问问题在这种情况下需要注意。有各种方法可以解决这个问题,比如域名握手等等。



选项2:

存储需要传递的值在DB中访问它。
Option 1:
You can use Iframe to host the website and add hidden field in the website to pass data.

Cross-domain access issues need to be taken care in this case. There are various ways to overcome this, like domain handshake, etc.,

Option 2:
Store the value that needs to be passed in the DB and access it.


我们可以在Web应用程序中编写一个cookie并共享信息
We can write a cookie in web application and share information


这篇关于在Web应用程序和dektop应用程序之间传递值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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