private AdministrationEDSC.WebConfigurationDTRow GetData() { AdministrationEDSC.WebConfigurationDTRow dr = new AdministrationEDSC.WebConfigurationDTDataTable().NewWebConfigurationDTRow(); dr.SMTPAccount = txtSender.Text; dr.SMTPPassword = txtPassword.Text; dr.SMTPUserName = txtUsername.Text; dr.SMTPHost = txtSMTPAddress.Text; dr.SMTPPort = Convert.ToInt32(txtSMTPPort.Text); dr.SMTPSSL = chkSsl.Checked; dr.SMTPIIS = chkIIS.Checked; return(dr); }
protected void lnkSaveMenuColor_Click(object sender, EventArgs e) { var dr = new AdministrationEDSC.WebConfigurationDTDataTable().NewWebConfigurationDTRow(); if (!string.IsNullOrEmpty(txtFooter.Text)) { dr.FooterColor = txtFooter.Text; } else { dr.FooterColor = "FFFFFF"; } if (!string.IsNullOrEmpty(txtHeaderStatusColor.Text)) { dr.HeaderStatusColor = txtHeaderStatusColor.Text; } else { dr.HeaderStatusColor = "FFFFFF"; } if (!string.IsNullOrEmpty(txtBodyOuterColor.Text)) { dr.BodyOuterColor = txtBodyOuterColor.Text; } else { dr.BodyOuterColor = "FFFFFF"; } if (!string.IsNullOrEmpty(txtFooter.Text)) { dr.FooterColor = txtFooter.Text; } else { dr.FooterColor = "FFFFFF"; } if (!string.IsNullOrEmpty(txtTableHeading.Text)) { dr.TableHeadingColor = txtTableHeading.Text; } else { dr.TableHeadingColor = "FFFFFF"; } if (!string.IsNullOrEmpty(txtSearchBar.Text)) { dr.SearchBarBackgroundColor = txtSearchBar.Text; } else { dr.SearchBarBackgroundColor = "FFFFFF"; } if (!string.IsNullOrEmpty(txtActivityTab.Text)) { dr.ActivityDetailTabColor = txtActivityTab.Text; } else { dr.ActivityDetailTabColor = "FFFFFF"; } dr.ModifiedBy = Membership.GetUser().UserName; dr.ModifiedDatetime = DateTime.Now; new AdministrationDAC().UpdateWebConfigurationColor(dr); lblSaved1.Visible = true; lblSaved1.Text = "-Saved- ," + DateTime.Now; try { //CssServiceReference.CustomerWebSettingServiceSoapClient cssClient = new CssServiceReference.CustomerWebSettingServiceSoapClient(); //PvdServiceReference.ProviderWebSettingServiceSoapClient pvdClient = new PvdServiceReference.ProviderWebSettingServiceSoapClient(); //cssClient.ApplyCss(); //pvdClient.ApplyCss(); } catch { } }