2014-02-19 2 views
0

양식 앱으로 웹 사이트에 데이터를 게시하고 싶습니다. 나는웹 사이트에 빈 데이터 오류 게시

 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는 항상 비어 있습니다. 나 좀 도와 줄 수있어?

답변

1

난 당신이

public WebClientEx(string name) 
    { 
     Newpost = name; 
    } 
을하고 싶은 생각
관련 문제