protected void BTN_Agregar_Click(object sender, EventArgs e) { DLIdioma datos = new DLIdioma(); DUIdioma idioma = new DUIdioma { Nombre = TB_Nombre.Text, Terminacion = TB_Terminacion.Text }; datos.insertarIdioma(idioma, Session.SessionID); GV_Idiomas.DataBind(); }
protected void DDL_Idioma_SelectedIndexChanged(object sender, EventArgs e) { Session["idioma"] = DDL_Idioma.SelectedValue.ToString(); Response.Redirect("~/View/Inicio_Visitante.aspx"); DLIdioma idioma = new DLIdioma(); DLIdioma datos = new DLIdioma(); String ter = idioma.obtenerTerminacion(int.Parse(Session["idioma"].ToString())); Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(ter); Thread.CurrentThread.CurrentUICulture = new CultureInfo(ter); }