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.
精彩评论