// *****************************************************************************************
 // Kullanıcı Bilgilerini Getir
 // *****************************************************************************************
 private void constructUserInfo()
 {
     DashboardUser objUser = new DashboardUser();
     objUser.GetAllActiveUserForUserId(GlobalSettings.OrganizationConnectionString, HttpContext.Current.Session["userID"].ToString());
     this.txtName.Value = objUser.Name;
     this.txtSurName.Value = objUser.Surname;
     this.txtEmail.Value = objUser.Email;
     this.txtTelephone.Value = objUser.Telephone;
     this.txtMissions.Value = objUser.Mission;
     this.txtSavedPassword.Value = CryptoHelper.HashString(objUser.Password);
 }
        // *****************************************************************************************
        // Servislerin Durumunu Kontrol Et
        // *****************************************************************************************
        // *****************************************************************************************
        // Servisler Stop ise Kullanıcıya Mail Gönder
        // *****************************************************************************************
        private void SendMail(string WindowsServiceName, string Message)
        {
            try
            {
                if (Convert.ToInt32(Session["NotAlert"]) == 0)
                {
                    DashboardUser objUser = new DashboardUser();
                    objUser.GetAllActiveUserForUserId(GlobalSettings.OrganizationConnectionString, HttpContext.Current.Session["userID"].ToString());

                    string ReceiverEmailAddress = objUser.Email;
                    string CCEmailAddress = WebConfigurationManager.AppSettings["CCEmailAddress"];
                    int SuccessSend;

                    string Sender_Address = GlobalSettings.getApplicationSystemSettingsStr(GlobalEnum.AppConfig.EMAIL_SENDER_ADDRESS.ToString());
                    string Password = GlobalSettings.getApplicationSystemSettingsStr(GlobalEnum.AppConfig.EMAIL_PASSWORD.ToString());
                    string MessageBody = Message + WindowsServiceName;
                    MailMessage mesaj = new MailMessage();//mail mesaj nesnesi yarat
                    mesaj.From = new MailAddress(Sender_Address, "Admin", System.Text.Encoding.UTF8);//nesnenin alanlarina gerekli bilgilerin atanmasi
                    SmtpClient smtp = new SmtpClient();
                    mesaj.To.Add(ReceiverEmailAddress);
                    if (!String.IsNullOrEmpty(CCEmailAddress))
                    {
                        mesaj.CC.Add(CCEmailAddress);
                    }
                    mesaj.Subject = "Site Yönetim Dashboard - Servis Durumu Bilgilendirme (ACİL)";
                    mesaj.IsBodyHtml = true;
                    mesaj.BodyEncoding = System.Text.Encoding.UTF8;
                    mesaj.Body = MessageBody;
                    mesaj.Priority = MailPriority.High;
                    smtp.Credentials = new System.Net.NetworkCredential(Sender_Address, Password);//kullanici adi ve sifre
                    smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
                    smtp.Port = Convert.ToInt32(GlobalSettings.getApplicationSystemSettingsStr(GlobalEnum.AppConfig.EMAIL_PORT.ToString()));
                    smtp.Host = GlobalSettings.getApplicationSystemSettingsStr(GlobalEnum.AppConfig.EMAIL_HOST.ToString());
                    bool EnableSsl = false;
                    Boolean.TryParse(GlobalSettings.getApplicationSystemSettingsStr(GlobalEnum.AppConfig.EMAIL_USING_SSL.ToString()), out EnableSsl);
                    smtp.EnableSsl = EnableSsl;
                    smtp.Send(mesaj);
                    SuccessSend = 1;
                    if (SuccessSend != 1)
                    {
                        Response.Write(@"<script language='javascript'>alert('Mail Gönderimi Sırasında Hata!');</script>");
                    }
                }
            }
            catch (Exception)
            {
                Response.Write(@"<script language='javascript'>alert('Mail Gönderimi Sırasında Hata!');</script>");
            }
        }