How to set post parameters in WebClient class in a Silverlight app.

Posted by cmaduro on Stack Overflow See other posts from Stack Overflow or by cmaduro
Published on 2010-03-31T18:49:44Z Indexed on 2010/03/31 18:53 UTC
Read the original article Hit count: 724

Filed under:
|

First of all, I wrote a simple php page, that picks up some variables from the POST parameters such as a query and a authentication string, and returns the result as xml. I intend to call this page with the WebClient class from a Silverlight application. I'm using POST because we are querying the database with any valid sql statement, not only select statements. The WebClient class uses the UploadDataAsync method to post to a http server, however it requires the post parameters be passed as a NameValueCollection. This class is missing in the Silverlight runtime. How do I proceed???

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about webclient