protected void BtnSave_Click(object sender, EventArgs e) { #region WebSet model = new WebSet(); model.openOrcloseWeb = RadioBtnOpenOrClose.SelectedValue.ToInt(); model.Website = TbWebSite.Text; model.WebName = TbWebName.Text; model.Email = TbMail.Text; model.Address = TbAddress.Text; model.ZipCode = TbZipCode.Text; model.Phone = TbPhone.Text; model.Copyright = TbCopyright.Text; model.DuplicateWebpage = RadioBtnDuplicateWebpage.SelectedValue; model.ICP = TbIcp.Text; model.KeyWord = TbKeyWord.Text; model.Description = TbDescirption.Text; model.Fax = TbFax.Text; model.TQ = TbTQ.Text; model.WaterMarkType = RadioWaterMarkType.SelectedValue.ToInt(); model.WaterMarkTxt = TbWaterMarkTxt.Text; model.WaterMarkPicUrl = WaterMarkPic.Url; model.WaterMarkHorizontal = RadioHorizontal.SelectedValue; model.WaterMarkVertical = RadioVertical.SelectedValue; MyXmlSerializer <WebSet> .Set(model, fileUrl); MessageDiv.InnerHtml = YK.Common.CommonClass.Alert("数据修改成功!"); #endregion }
protected void BtnSave_Click(object sender, EventArgs e) { #region EmailSet model = new EmailSet(); model.openOrcloseWeb = RadioBtnOpenOrClose.SelectedValue.ToInt(); model.EmailName = TbEmialName.Text.TrimEnd(); model.EmailPwd = TbEmailPwd.Text.TrimEnd(); model.SMTP = TbSMTPAddress.Text.TrimEnd(); model.Port = TbPort.Text.TrimEnd(); MyXmlSerializer <EmailSet> .Set(model, fileUrl); MessageDiv.InnerHtml = YK.Common.CommonClass.Alert("数据修改成功!"); #endregion }