开发者

What is the best way to post data to an aspx page from WPF application?

开发者 https://www.devze.com 2023-02-19 20:09 出处:网络
I need to send a simple variable value from my WPF app to an aspx page. The page runs under an anonymous web site. What are the best practic开发者_StackOverflow中文版es to post a single value and read

I need to send a simple variable value from my WPF app to an aspx page. The page runs under an anonymous web site. What are the best practic开发者_StackOverflow中文版es to post a single value and read it out on the other side (aspx)?


I think all you are looking for is the HttpRequest class.

Just set the post data (or get if it's easier) and execute the request.


Sounds like you need to create a web service on that site and call the web service method from the WPF application. To eliminate the web overhead you could use a WCF service instead, hosted on the same server as the ASPX application.

0

精彩评论

暂无评论...
验证码 换一张
取 消