public IActionResult OnGet(string Lengua = null) { if (Lengua != null) { Clases.IdiomaCheck(Lengua); HttpContext.Session.SetString("lengua", Lengua); } return(Redirect(HttpContext.Session.GetString("web").ToString())); }
public void OnGet() { HttpContext.Session.SetString("web", "Software"); if (HttpContext.Session.GetString("lengua") != null) { Clases.IdiomaCheck(HttpContext.Session.GetString("lengua").ToString()); } ViewData["Title"] = Idiomas.Software; ViewData["web"] = HttpContext.Session.GetString("web").ToString(); }
public void OnGet() { HttpContext.Session.SetString("web", "Index"); if (HttpContext.Session.GetString("lengua") != null) { Clases.IdiomaCheck(HttpContext.Session.GetString("lengua").ToString()); } ViewData["Title"] = "Espack Eurologística"; ViewData["web"] = HttpContext.Session.GetString("web").ToString(); }
public void OnGet() { HttpContext.Session.SetString("web", "QueEsEspack"); if (HttpContext.Session.GetString("lengua") != null) { Clases.IdiomaCheck(HttpContext.Session.GetString("lengua").ToString()); } ViewData["Title"] = Idiomas.Que_es_Espack; ViewData["web"] = HttpContext.Session.GetString("web").ToString(); }
public void OnGet() { HttpContext.Session.SetString("web", "LogIdentificacion"); if (HttpContext.Session.GetString("lengua") != null) { Clases.IdiomaCheck(HttpContext.Session.GetString("lengua").ToString()); } ViewData["Title"] = Idiomas.LogIdentificación; ViewData["web"] = HttpContext.Session.GetString("web").ToString(); }
public void OnGet() { HttpContext.Session.SetString("web", "MonPreCon"); if (HttpContext.Session.GetString("lengua") != null) { Clases.IdiomaCheck(HttpContext.Session.GetString("lengua").ToString()); } ViewData["Title"] = Idiomas.Montajespreparaconjuntos; ViewData["web"] = HttpContext.Session.GetString("web").ToString(); }
public void OnGet() { HttpContext.Session.SetString("web", "CerPre"); if (HttpContext.Session.GetString("lengua") != null) { Clases.IdiomaCheck(HttpContext.Session.GetString("lengua").ToString()); } ViewData["Title"] = Idiomas.CertificadosPremios; ViewData["web"] = HttpContext.Session.GetString("web").ToString(); }
public void OnGet() { HttpContext.Session.SetString("web", "ProLogEsp"); if (HttpContext.Session.GetString("lengua") != null) { Clases.IdiomaCheck(HttpContext.Session.GetString("lengua").ToString()); } ViewData["Title"] = Idiomas.Proclogespeciales; ViewData["web"] = HttpContext.Session.GetString("web").ToString(); }
public void OnGet() { HttpContext.Session.SetString("web", "Distribucion"); if (HttpContext.Session.GetString("lengua") != null) { Clases.IdiomaCheck(HttpContext.Session.GetString("lengua").ToString()); } ViewData["Title"] = Idiomas.Distribucnacionalinter; ViewData["web"] = HttpContext.Session.GetString("web").ToString(); }
public void OnGet() { HttpContext.Session.SetString("web", "CenCon"); if (HttpContext.Session.GetString("lengua") != null) { Clases.IdiomaCheck(HttpContext.Session.GetString("lengua").ToString()); } ViewData["Title"] = Idiomas.Centroconsolidadorcontenedores; ViewData["web"] = HttpContext.Session.GetString("web").ToString(); }
public void OnGet() { HttpContext.Session.SetString("web", "Almacen"); if (HttpContext.Session.GetString("lengua") != null) { Clases.IdiomaCheck(HttpContext.Session.GetString("lengua").ToString()); } ViewData["Title"] = Idiomas.Almacenaje + " - " + Idiomas.AlmacenAduanero; ViewData["web"] = HttpContext.Session.GetString("web").ToString(); }
public void OnGet() { HttpContext.Session.SetString("web", "Trasvase"); if (HttpContext.Session.GetString("lengua") != null) { Clases.IdiomaCheck(HttpContext.Session.GetString("lengua").ToString()); } ViewData["Title"] = Idiomas.Trasvaseacontenedoresespec; ViewData["web"] = HttpContext.Session.GetString("web").ToString(); }
public IActionResult OnPost(string Nombre, string Asunto, string Email, string Mensaje, string Robot) // public void OnGet() { HttpContext.Session.SetString("web", "Contacto"); if (HttpContext.Session.GetString("lengua") != null) { Clases.IdiomaCheck(HttpContext.Session.GetString("lengua").ToString()); } ViewData["Title"] = Idiomas.Contacto; ViewData["web"] = HttpContext.Session.GetString("web").ToString(); if (Robot != "1") { ViewData["Mensaje"] = "ERROR: No has pulsado la casilla de No Soy Robot"; return(Page()); } string _Subject = Asunto; string _Body = "IP: " + HttpContext.Connection.RemoteIpAddress.ToString() + ", Usuario Sistema Operativo: " + Environment.UserName + "<br/><br/>" + Nombre + " con Email: " + Email + " Remitió el siguiente Mensaje: <br/><br/>" + Mensaje; string _SendTo = "*****@*****.**"; System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage(); msg.To.Add(_SendTo); msg.From = new MailAddress("*****@*****.**", "Espack Eurologística", System.Text.Encoding.UTF8); msg.Subject = _Subject; msg.SubjectEncoding = System.Text.Encoding.UTF8; msg.Body = _Body; msg.BodyEncoding = System.Text.Encoding.UTF8; msg.IsBodyHtml = true; SmtpClient client = new SmtpClient(); client.Credentials = new System.Net.NetworkCredential("itespackeuro", "*Espack321*"); client.Port = 587; client.Host = "smtp.gmail.com"; client.EnableSsl = true; try { client.Send(msg); ViewData["Mensaje"] = "Mensaje Enviado Correctamente. Gracias por contactar con Espack Eurologística"; } catch (System.Net.Mail.SmtpException ex) { ViewData["Mensaje"] = "ERROR: " + ex.Message; } return(Page()); }