启动浏览器并从winform应用程序传递数据到它 [英] starting browser and passing data to it from winform application

查看:715
本文介绍了启动浏览器并从winform应用程序传递数据到它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有需要在一个新的浏览器窗口中打开一个URL并传递数据给它一个winform应用程序。另外,数据太大,通过查询字符串参数。
是有一个启动一个新的浏览器实例,并将该数据作为表单数据或会话莫名其妙的方式?

I have a winform app that needs to open a URL in a new browser window and pass data to it. Also the data is too large to pass through query string parameters. Is there a way to start a new browser instance and pass the data as form data or session somehow?

推荐答案

链接=http://aaa.com/asdas.exe为例。你可以使用这样

Link = "http://aaa.com/asdas.exe" for example. you can use like this.

System.Diagnostics.Process p = new System.Diagnostics.Process();

   p.StartInfo.FileName = "\"" + Link + "\"";
   p.StartInfo.UseShellExecute = true;
   p.Start();

这篇关于启动浏览器并从winform应用程序传递数据到它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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