protected void Button1_Click(object sender, System.EventArgs e)
{
XmlDocument doc = new XmlDocument();
String Account = TextBox1.Text.ToString();
String Password = TextBox2.Text.ToString();
String url = "http://3tong.net/http/sms/Submit";
String Phone = TextBox3.Text.ToString();
String sendtime = TextBox4.Text.ToString();
String sign = TextBox5.Text.ToString();
String subcode = TextBox6.Text.ToString();
String Content = TextBox8.Text.ToString();
String msgid = TextBox7.Text.ToString();
String message = DocXml(Account,Password,msgid,Phone,Content,subcode,sendtime,sign);
WebClient webClient = new WebClient();
NameValueCollection postValues = new NameValueCollection();
postValues.Add("message", message);
//向服务器发送POST数据
byte[] responseArray = webClient.UploadValues(url, postValues);
TextBox9.Text = Encoding.UTF8.GetString(responseArray);
}