c#怎么让webform读取winform上传的字符串

winform是客户端 webform是服务器 winform利用webclient.uploadstring应该是可以实现向web端发送字符串吧,那么web怎么接收这个字符串,并把字符串赋值给另一个变量 有类似httpostedfile这种类吗 怎么用?求大神解惑 急

wc.UploadString(url, "name=123");//winform


  string s=Request.QueryString["name"];//webform

win form是客户端,web form是服务端,直接发个HttpWebRequest请求就行了!

 //winform
wc.Headers["content-type"]="application/x-www-form-urlencoded";//还要添加这个头。。
wc.UploadString(url, "name=123");

//webform
 string s=Request.Form["name"];//webform

最简单的是直接用
webclient.downloadfile("http://你的网站.com/xxx.aspx?id=xxx&name=xxx");
服务器xxx.aspx的pageload里面写
Request.QueryString["id"]
Request.QueryString["name"]