从本机应用程序导航到HTML页面 [英] Navigating to HTML page from native application
问题描述
您好
我必须为具有Windows CE 5.0且安装了.NET CF 2.0的设备创建本机应用程序。应用程序必须获取设备的IP地址,然后打开一个html页面,必须使用POST传递IP地址。
I have to create an native application for the device which has Windows CE 5.0 and having .NET CF 2.0 installed in it. The App has to get the ip address of the device and then open an html page to which the ip address has to be passed by using POST.
我可以使用process.start获取IP地址并打开页面。现在我该如何发布参数?
I am able to get the ip address and open the page using process.start. Now how can i POST the paramter??
请帮助....先谢谢
推荐答案
您似乎认为必须使用浏览器打开页面并执行POST。打开页面并在.NET CF代码中执行POST会不会更有意义?您在.NET CF 2.0中有HttpWebRequest和HttpWebResponse。那个和你自己的一些编码
应该允许整个过程执行。
You seem to be assuming that it must use the browser to open the page and perform the POST. Wouldn't it make more sense to open the page and perform the POST in the .NET CF code? You have HttpWebRequest and HttpWebResponse in .NET CF 2.0. That and some coding of your own should allow the whole process to be performed.
Paul T。
这篇关于从本机应用程序导航到HTML页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!