protected void Button1_Click(object sender, EventArgs e)
 {
     SMSConfigManager ssm = new SMSConfigManager();
     try
     {
         ssm.ModiftySMSConf(Server.MapPath("../xml/SendSMS.xml"), serverip.Text.ToString(), port.Text.ToString());
         ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('修改成功')</script>");
         TabWebControl1.SelectedTabIndex = 2;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 private SendSMS GetSMSConf()
 {
     SMSConfigManager ssm = new SMSConfigManager();
     return ssm.GetSMSconfig(Server.MapPath("../xml/SendSMS.xml"));
 }
 private void BindConf()
 {
     SMSConfigManager ssm = new SMSConfigManager();
     SendSMS sms = new SendSMS();
     sms = ssm.GetSMSconfig(Server.MapPath("../xml/SendSMS.xml"));
     serverip.Text = sms.Ip;
     port.Text = sms.Port;
 }