0
我想用Form應用程序發佈數據到網站。我打電話一類向網站發佈空數據錯誤
string name = pst.Text;
WebClientEx Wex = new WebClientEx(name);
,並在類:
public class WebClientEx : WebClient
{
public CookieContainer _cookies = new CookieContainer();
public string Newpost;
public WebClientEx(string name)
{
name = Newpost;
}
用這種方法林發佈數據:
public string getPost()
{
WebClientEx client = new WebClientEx();
CQ dom = CQ.Create(Page);
data.Add("value", Newpost);
然而Newpost總是空的。你可以幫我嗎?