string data = "
string postData = string.Format(data, TextBox1.Text);
HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(url);
myHttpWebRequest.AllowWriteStreamBuffering = false;
myHttpWebRequest.Method = "POST";
UTF8Encoding encjavascript:void(0)odedData = new UTF8Encoding();
byte[] byteArray = encodedData.GetBytes(postData);
myHttpWebRequest.ContentType = "application/x-www-form-urlencoded";
myHttpWebRequest.ContentLength = byteArray.Length;
Stream newStream = myHttpWebRequest.GetRequestStream();
newStream.Write(byteArray, 0, byteArray.Length);
newStream.Close();
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
StreamReader sr = new StreamReader(myHttpWebResponse.GetResponseStream(), System.Text.Encoding.UTF8);
TextBox2.Text = sr.ReadToEnd();
sr.Close();