protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) { //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 30; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { GridView gv = (GridView)sender; ((Label)e.Row.FindControl("Label3")).Text = compIdioma["Label3"].ToString(); ((Label)e.Row.FindControl("Label4")).Text = compIdioma["Label4"].ToString(); ((Label)e.Row.FindControl("Label7")).Text = compIdioma["Label7"].ToString(); ((Label)e.Row.FindControl("LB_Parr")).Text = compIdioma["LB_Parr"].ToString(); ((Button)e.Row.FindControl("Button1")).Text = compIdioma["Button1"].ToString(); ((Label)e.Row.FindControl("LB_Corr")).Text = compIdioma["LB_Corr"].ToString(); ((Label)e.Row.FindControl("LB_Date")).Text = compIdioma["LB_Date"].ToString(); //this.respo.InnerText } catch (Exception ex) { } }
protected void Page_Load(object sender, EventArgs e) { L_MasterIndex logi = new L_MasterIndex(); U_aux_MasterIndex re = logi.page_load(Session["Sesion"]); DropDownPerfilUsr.Visible = re.DLL_perfilUsr1; IMG_PerfilHeatherNR.ImageUrl = re.RutaFoto; LB_NombreHeatherNR.Text = re.NombreHeather; //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 18; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.prof.InnerHtml = compIdioma["prof"].ToString() + " <i class='fa fa-user'></i>"; this.edit_info.InnerHtml = compIdioma["edit_info"].ToString() + " <i class='fa fa-edit'></i>"; } catch (Exception ex) { } }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); L_SolicitudesPendientes logi = new L_SolicitudesPendientes(); String respo = logi.page_load(Session["Sesion"], Session["sesion"]); //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 32; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.soli.InnerText = compIdioma["soli"].ToString(); this.pend.InnerText = compIdioma["pend"].ToString(); this.sol_pen.InnerHtml = compIdioma["sol_pen"].ToString() + "<small id='new_opt' runat='server'> " + compIdioma["new_opt"].ToString() + "</small>"; } catch (Exception ex) { } Page.ClientScript.RegisterStartupScript(this.GetType(), "scrt", "redireccionar('" + respo + "');", true); }
protected void Page_Load(object sender, EventArgs e) { L_Home logi = new L_Home(); Session["idiomases"] = int.Parse(logi.validar_ses_idioma(Session["idiomases"]).ToString()); Session["global"] = logi.validar_region(Session["global"]).ToString(); //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 24; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(Session["global"].ToString()); Thread.CurrentThread.CurrentUICulture = new CultureInfo(Session["global"].ToString()); try { this.BTN_Idioma.Text = compIdioma["BTN_Idioma"].ToString(); this.LB_head.Text = compIdioma["LB_head"].ToString(); this.BTN_Acep.Text = compIdioma["BTN_Acep"].ToString(); this.BTN_Can.Text = compIdioma["BTN_Can"].ToString(); } catch (Exception ex) { } }
protected void Page_Load(object sender, EventArgs e) { //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 8; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.que_hac.InnerText = compIdioma["que_hac"].ToString(); this.desc.InnerHtml = compIdioma["desc"].ToString(); this.title.InnerText = compIdioma["title"].ToString(); this.explore.InnerText = compIdioma["explore"].ToString(); this.profile.InnerText = compIdioma["profile"].ToString(); this.desc2.InnerText = compIdioma["desc2"].ToString(); this.atencion.InnerText = compIdioma["atencion"].ToString(); this.desc3.InnerText = compIdioma["desc3"].ToString(); this.comp.InnerText = compIdioma["comp"].ToString(); this.desc4.InnerText = compIdioma["desc4"].ToString(); this.conec.InnerText = compIdioma["conec"].ToString(); this.desc5.InnerText = compIdioma["desc5"].ToString(); this.comp_inv.InnerText = compIdioma["comp_inv"].ToString(); this.desc6.InnerText = compIdioma["desc6"].ToString(); } catch (Exception ex) { } }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); L_QuejasAdmin logi = new L_QuejasAdmin(); U_AuxQuejAdm rep = logi.page_load(Session["Sesion"], GridView1.Rows.Count, TableRowSection.TableHeader, Session["sesion"]); GridView1.UseAccessibleHeader = rep.AcceHeader; GridView1.HeaderRow.TableSection = (TableRowSection)rep.Header1; int num = rep.Num; //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 29; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.quej.InnerText = compIdioma["quej"].ToString(); this.comprom.InnerText = compIdioma["comprom"].ToString(); this.adm_pqr.InnerText = compIdioma["adm_pqr"].ToString(); this.emp_pqr.InnerText = compIdioma["emp_pqr"].ToString(); this.clien_pqr.InnerText = compIdioma["clien_pqr"].ToString(); //this.bloq_perfi.InnerText = compIdioma["bloq_perfi"].ToString(); } catch (Exception ex) { } Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", "redireccionar('" + rep.Redir + "');", true); }
protected void Page_Load(object sender, EventArgs e) { L_Invertario logic = new L_Invertario(); String redir = logic.page_load(IsPostBack, Session["Sesion"]); //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 14; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.inv.InnerText = compIdioma["inv"].ToString(); this.Produc.InnerText = compIdioma["Produc"].ToString(); this.nom.InnerText = compIdioma["nom"].ToString(); this.desc.InnerText = compIdioma["desc"].ToString(); this.cant.InnerText = compIdioma["cant"].ToString(); this.min_cant.InnerText = compIdioma["min_cant"].ToString(); this.categ.InnerText = compIdioma["categ"].ToString(); this.modi.InnerText = compIdioma["modi"].ToString(); } catch (Exception ex) { } Page.ClientScript.RegisterStartupScript(this.GetType(), "sctr", "redireccionar('" + redir + "');", true); }
protected void Page_Load(object sender, EventArgs e) { //Debo Cambiar Esto Por Mi Script L_CambiarPass_Usr logic = new L_CambiarPass_Usr(); String response = logic.page_load(Session["Sesion"]); String texto = "<script> redireccionar('" + response + "')</script>"; //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 4; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.usr_ch_pass.InnerText = compIdioma["usr_ch_pass"].ToString(); this.pass_usr.InnerText = compIdioma["pass_usr"].ToString(); this.ant_pass.InnerText = compIdioma["ant_pass"].ToString(); this.new_pass.InnerText = compIdioma["new_pass"].ToString(); this.new_pass2.InnerText = compIdioma["new_pass2"].ToString(); Btn_Modificar.Text = compIdioma["Btn_Modificar"].ToString(); } catch (Exception ex) { } Page.ClientScript.RegisterStartupScript(this.GetType(), "script", texto); }
//FALTA EVITAR PARA RECARGAR EL DATABIND CON EL TRY CATCH protected void Page_Load(object sender, EventArgs e) { try { //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 6; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); L_TopDiezUsr logica = new L_TopDiezUsr(); DataTable topTen = logica.page_load(IsPostBack, Session["Sesion"], (DataTable)RP_TopTen.DataSource, compIdioma["BTN_VerProducto"].ToString()); RP_TopTen.DataSource = topTen; RP_TopTen.DataBind(); String redir = logica.redireccion(topTen); try { this.title_panel.InnerText = compIdioma["title_panel"].ToString(); this.dat.InnerText = compIdioma["dat"].ToString(); this.nom_pro.InnerText = compIdioma["nom_pro"].ToString(); this.nom_emp.InnerText = compIdioma["nom_emp"].ToString(); this.ver_prod.InnerText = compIdioma["ver_prod"].ToString(); } catch (Exception ex) { } Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", "redireccionar('" + redir + "');", true); }catch (Exception ex) { //No Hago Nada } }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); L_ReporteAdmin logi = new L_ReporteAdmin(); String res = logi.page_load(Session["Sesion"], Session["sesion"]); //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 30; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.pro_rep2.InnerHtml = compIdioma["pro_rep"].ToString() + "<small id='n_opt' runat='server'> " + compIdioma["n_opt"].ToString() + "</small>"; this.reporte.InnerText = compIdioma["reporte"].ToString(); this.pro_rep.InnerText = compIdioma["pro_rep"].ToString(); //this.sol.InnerText = compIdioma["sol"].ToString(); //this.respo.InnerText } catch (Exception ex) { } Page.ClientScript.RegisterStartupScript(this.GetType(), "scr", "redireccionar('" + res + "');", true); }
protected void Page_Load(object sender, EventArgs e) { L_Store logica = new L_Store(); DataTable res = logica.L_Page_Load(IsPostBack, Session["Tienda"], null); //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 9; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.prod.InnerText = compIdioma["prod"].ToString(); DataColumn colm = new DataColumn(); colm.DefaultValue = compIdioma["btn_comp"].ToString(); colm.DataType = typeof(String); colm.ColumnName = "btn_comp"; res.Columns.Add(colm); } catch (Exception ex) { } RP_Productos.DataSource = res; RP_Productos.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { Object sesidioma = Session["idiomases"]; try { L_AdministrarProducto logica = new L_AdministrarProducto(); U_aux_AdminProd resp = logica.page_load(IsPostBack, Session["Sesion"], Session["IdProducto"]); Session["Productos"] = resp.Products; Prueba1.DataSource = resp.Products; Prueba1.DataBind(); idProducto.Text = resp.IdProducto.ToString(); //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Int32 formulario = 13; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.header.InnerText = compIdioma["header"].ToString(); this.tbl_produ.InnerText = compIdioma["tbl_produ"].ToString(); this.nom.InnerText = compIdioma["nom"].ToString(); this.desc.InnerText = compIdioma["desc"].ToString(); this.cant.InnerText = compIdioma["cant"].ToString(); this.perc.InnerText = compIdioma["perc"].ToString(); this.cate.InnerText = compIdioma["cate"].ToString(); this.alert.InnerText = compIdioma["alert"].ToString(); this.modif.InnerText = compIdioma["modif"].ToString(); this.delete.InnerText = compIdioma["delete"].ToString(); this.mod_data.InnerText = compIdioma["mod_data"].ToString(); this.descri.InnerText = compIdioma["descri"].ToString(); this.nombr.InnerText = compIdioma["nombr"].ToString(); this.quant.InnerText = compIdioma["quant"].ToString(); this.price.InnerText = compIdioma["price"].ToString(); this.cat.InnerText = compIdioma["cat"].ToString(); this.img.InnerText = compIdioma["img"].ToString(); this.key_words.InnerText = compIdioma["key_words"].ToString(); this.add.InnerText = compIdioma["add"].ToString(); this.alr.InnerText = compIdioma["alr"].ToString(); this.BTN_Modificar.Text = compIdioma["BTN_Modificar"].ToString(); this.BTN_ModificarAlerta.Text = compIdioma["BTN_ModificarAlerta"].ToString(); this.BTN_SubirFotos.Text = compIdioma["BTN_SubirFotos"].ToString(); } catch (Exception ex) { } Page.ClientScript.RegisterStartupScript(this.GetType(), "scrti", "redireccionar('" + resp.Redir + "');", true); } catch (Exception ex) { //Significa que no se deben de recargar los controles String[] men = ex.Message.Split('/'); idProducto.Text = men[0]; } }
//BOTON DE ELIMINAR IDIOMA protected void BTN_Delet_Click(object sender, EventArgs e) { //METODO PARA ELIMINAR UN PRODUCTO Button btn = (Button)(sender); int id_idiom = int.Parse(btn.CommandArgument.ToString()); L_Idioma logi = new L_Idioma(); logi.eliminar_idioma(id_idiom); Response.Redirect("AdministrarIdiomas.aspx"); }
protected void Page_Load(object sender, EventArgs e) { //FALTA LO DE REDIRECCIONAR SI NO ES EL ROL INDICADO //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 35; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.adm.InnerText = compIdioma["adm"].ToString(); this.idiom.InnerText = compIdioma["idiom"].ToString(); this.idiom1.InnerHtml = compIdioma["idiom"].ToString() + " <small id='comp_our' runat='server'> " + compIdioma["comp_our"].ToString() + "</small>"; this.all_cont.InnerText = compIdioma["all_cont"].ToString(); this.LB_DDL1.Text = compIdioma["LB_DDL1"].ToString(); this.LB_Form.Text = compIdioma["LB_Form"].ToString(); this.LB_Contr.Text = compIdioma["LB_Contr"].ToString(); this.LB_inf.Text = compIdioma["LB_inf"].ToString(); this.LB_TB.Text = compIdioma["LB_TB"].ToString(); this.Button2.Text = compIdioma["Button2"].ToString(); this.reg_idm.InnerText = compIdioma["reg_idm"].ToString(); this.Button1.Text = compIdioma["Button1"].ToString(); this.Label2.Text = compIdioma["Label2"].ToString(); this.Label1.Text = compIdioma["Label1"].ToString(); this.TB_Trad.Attributes.Remove("placeHolder"); this.TB_Trad.Attributes.Add("placeHolder", compIdioma["TB_Trad"].ToString()); this.Nombre_Idioma.Attributes.Remove("placeHolder"); this.Nombre_Idioma.Attributes.Add("placeHolder", compIdioma["Nombre_Idioma"].ToString()); this.Termin_Idioma.Attributes.Remove("placeHolder"); this.Termin_Idioma.Attributes.Add("placeHolder", compIdioma["Termin_Idioma"].ToString()); this.BTN_chang.Text = compIdioma["BTN_chang"].ToString(); this.H_Idiom.InnerText = compIdioma["H_Idiom"].ToString(); this.GridView1.Columns[0].HeaderText = compIdioma["GV_Id"].ToString(); this.GridView1.Columns[1].HeaderText = compIdioma["GV_Nom_Idiom"].ToString(); this.GridView1.Columns[2].HeaderText = compIdioma["GV_Term"].ToString(); this.GridView1.Columns[3].HeaderText = compIdioma["GV_Edit"].ToString(); this.GridView1.Columns[4].HeaderText = compIdioma["GV_Del"].ToString(); } catch (Exception ex) { } try { idiot.validar_postback(IsPostBack); GridView1.DataSource = idiot.traer_idioma_persistencia(); GridView1.DataBind(); } catch (Exception er) { } }
//BOTON DE CAMBIAR DATOS DEL IDIOMA protected void BTN_chang_Click(object sender, EventArgs e) { Button btn = (Button)sender; UEUIdioma datos = new UEUIdioma(); datos.Nombre_Idioma = Nombre_Idioma.Text; datos.Terminacion = Termin_Idioma.Text; datos.Id_Idioma = int.Parse(btn.CommandArgument); L_Idioma logi = new L_Idioma(); logi.update_idiom(datos); Response.Redirect("AdministrarIdiomas.aspx"); }
protected void DLL_forms_SelectedIndexChanged(object sender, EventArgs e) { L_Idioma logi = new L_Idioma(); DropDownList ddl = (DropDownList)sender; int id_form = int.Parse(ddl.SelectedValue.ToString()); int id_language = int.Parse(DDL_Idiomas.SelectedValue.ToString()); DataTable data = logi.obtner_controles(id_form, id_language); DDL_Controles.DataSource = data; DDL_Controles.DataTextField = "nom_control"; DDL_Controles.DataValueField = "texto"; DDL_Controles.DataBind(); LB_Data.Text = DDL_Controles.SelectedValue.ToString(); }
protected void Button1_Click(object sender, EventArgs e) { //METODO QUE ME REGISTRA EL IDIOMA UEUIdioma idiom = new UEUIdioma(); idiom.Nombre_Idioma = Nombre_Idioma.Text; idiom.Terminacion = Termin_Idioma.Text; //String term = Termin_Idioma.Text; //String idioma = Nombre_Idioma.Text; L_Idioma logi = new L_Idioma(); //logi.insertar_idioma(idioma,term); logi.insertar_idioma_persistencia(idiom); Response.Redirect("AdministrarIdiomas.aspx"); }
protected void BTN_Edit_Click(object sender, EventArgs e) { Button btn = (Button)sender; int command = int.Parse(btn.CommandArgument.ToString()); BTN_chang.CommandArgument = command.ToString(); BTN_chang.Visible = true; Button1.Visible = false; //OBTENER DATOS L_Idioma logi = new L_Idioma(); UEUIdioma idim = logi.traer_datos(command); Termin_Idioma.Text = idim.Terminacion; Nombre_Idioma.Text = idim.Nombre_Idioma; }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); L_AdminMembre logi = new L_AdminMembre(); String res = logi._Page_Load(Session["Sesion"], Session["sesion"]); String[] resp = res.Split('/'); int num = int.Parse(resp[1]); //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 33; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.adm.InnerText = compIdioma["adm"].ToString(); this.mem.InnerText = compIdioma["mem"].ToString(); this.mem1.InnerHtml = compIdioma["mem"].ToString() + " <small id='compro' runat='server'> " + compIdioma["compro"].ToString() + "</small>"; this.all_mem.InnerText = compIdioma["all_mem"].ToString(); this.add_membership.InnerText = compIdioma["add_membership"].ToString(); this.Label1.Text = compIdioma["Label1"].ToString(); this.NombreMembresia.Attributes.Remove("placeholder"); this.NombreMembresia.Attributes.Add("placeholder", compIdioma["NombreMembresia"].ToString()); this.Label2.Text = compIdioma["Label2"].ToString(); this.TB_Tiempo.Attributes.Remove("placeholder"); this.TB_Tiempo.Attributes.Add("placeholder", compIdioma["TB_Tiempo"].ToString()); this.Label3.Text = compIdioma["Label3"].ToString(); this.TB_Valor.Attributes.Remove("placeholder"); this.TB_Valor.Attributes.Add("placeholder", compIdioma["TB_Valor"].ToString()); this.Button1.Text = compIdioma["Button1"].ToString(); this.Button2.Text = compIdioma["Button2"].ToString(); this.GridView2.Columns[1].HeaderText = compIdioma["GV2_Nom"].ToString(); this.GridView2.Columns[0].HeaderText = compIdioma["GV2_Dur"].ToString(); this.GridView2.Columns[2].HeaderText = compIdioma["GV2_Cost"].ToString(); } catch (Exception ex) {} Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", "redireccionar('" + resp[0] + "');", true); }
protected void Page_Load(object sender, EventArgs e) { //NO HAY QUE VALIDAR LO DEL POSTBACK Y LA PAGINA DEBIDO A QUE ES PARA TODOS try { swUniEmp.ServidorUniempleoSoapClient servicio = new swUniEmp.ServidorUniempleoSoapClient(); servicio.ClientCredentials.UserName.UserName = "******"; servicio.ClientCredentials.UserName.Password = "******"; swUniEmp.SeguridadToken objSegu = new swUniEmp.SeguridadToken { username = "******", Pass = "******" }; String token = servicio.AutenticacionUsuario(objSegu); //Validacion En Logica try { L_EmpresUniEmp logi = new L_EmpresUniEmp(); logi.validar_token(token); }catch (Exception ex) { throw ex; } objSegu.Token_Autenticacion = token; List <JoinEmpresasR> list = JsonConvert.DeserializeObject <List <JoinEmpresasR> >(servicio.Empresas_Registradas(objSegu)); GV_Empre.DataSource = list; GV_Empre.DataBind(); //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 42; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.title.InnerHtml = compIdioma["title"].ToString(); } catch (Exception ex) { } } catch (Exception ex) { throw ex; } }
protected void GridView2_RowCreated(object sender, GridViewRowEventArgs e) { L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 33; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { ((Button)e.Row.FindControl("Select")).Text = compIdioma["BTN_Modi"].ToString(); } catch (Exception ex) { } }
protected void Button2_Click(object sender, EventArgs e) { //Registro Traduccion try { L_Idioma logi = new L_Idioma(); logi.insertar_traduccion(int.Parse(DDL_Idiomas.SelectedValue), int.Parse(DLL_forms.SelectedValue), TB_Trad.Text, DDL_Controles.SelectedItem.Text); this.LB_Succ.ForeColor = Color.Green; this.LB_Succ.Text = "Traduccion Correctamente Insertada"; } catch (Exception err) { this.LB_Succ.ForeColor = Color.Red; this.LB_Succ.Text = err.Message.ToString(); } }
protected void Productos_ItemCreated(object sender, RepeaterItemEventArgs e) { //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 14; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { ((Button)e.Item.FindControl("BTN_Mod")).Text = compIdioma["BTN_Mod"].ToString(); } catch (Exception ex) { } }
protected void Page_Load(object sender, EventArgs e) { Response.Cache.SetCacheability(HttpCacheability.ServerAndNoCache); L_AdminMotPqr logi = new L_AdminMotPqr(); String resp = logi.page_load(Session["Sesion"], Session["sesion"]); String[] re = resp.Split('/'); int num = int.Parse(re[1]); //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 34; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.adm.InnerText = compIdioma["adm"].ToString(); this.mot.InnerText = compIdioma["mot"].ToString(); this.mot_pqr.InnerText = compIdioma["mot_pqr"].ToString(); this.Label1.Text = compIdioma["Label1"].ToString(); this.NombreQueja.Attributes.Remove("placeHolder"); this.NombreQueja.Attributes.Add("placeHolder", compIdioma["NombreQueja"].ToString()); this.B_RegistrarMQueja.Text = compIdioma["B_RegistrarMQueja"].ToString(); this.Button2.Text = compIdioma["Button2"].ToString(); this.new_mot_rep.InnerText = compIdioma["new_mot_rep"].ToString(); this.Label2.Text = compIdioma["Label2"].ToString(); this.NombreReporte.Attributes.Remove("placeHolder"); this.NombreReporte.Attributes.Add("placeHolder", compIdioma["NombreReporte"].ToString()); this.B_RegistrarMReporte.Text = compIdioma["B_RegistrarMReporte"].ToString(); this.Button1.Text = compIdioma["Button1"].ToString(); this.mot_quej.InnerText = compIdioma["mot_quej"].ToString(); this.reg_mot.InnerText = compIdioma["reg_mot"].ToString(); this.rep_mot.InnerText = compIdioma["rep_mot"].ToString(); this.GridView1.Columns[0].HeaderText = compIdioma["GV_ID"].ToString(); this.GridView1.Columns[1].HeaderText = compIdioma["GV_NAME"].ToString(); this.GridView2.Columns[0].HeaderText = compIdioma["GV_ID"].ToString(); this.GridView2.Columns[1].HeaderText = compIdioma["GV_NAME"].ToString(); } catch (Exception ex) { } Page.ClientScript.RegisterStartupScript(this.GetType(), "Scr", "redireccionar('" + re[0] + "');", true); }
protected void Page_Load(object sender, EventArgs e) { //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 15; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.title.Text = compIdioma["title"].ToString(); this.desc1.InnerText = compIdioma["desc1"].ToString(); this.HL_Index.Text = compIdioma["HL_Index"].ToString(); this.reg.InnerHtml = compIdioma["reg"].ToString() + "<small id='desc_reg'>" + compIdioma["desc_reg"].ToString() + "</small>"; this.LB_Nmbr.Text = compIdioma["LB_Nmbr"].ToString(); this.LB_ID.Text = compIdioma["LB_ID"].ToString(); this.LB_Dir.Text = compIdioma["LB_Dir"].ToString(); this.LB_Email.Text = compIdioma["LB_Email"].ToString(); this.LB_Pass.Text = compIdioma["LB_Pass"].ToString(); this.CB_Terminos.Text = compIdioma["CB_Terminos"].ToString(); this.TB_FirstName.Attributes.Remove("placeholder"); this.TB_FirstName.Attributes.Add("placeholder", compIdioma["TB_FirstName"].ToString()); this.TB_LastName.Attributes.Remove("placeholder"); this.TB_LastName.Attributes.Add("placeholder", compIdioma["TB_LastName"].ToString()); this.TB_cc.Attributes.Remove("placeholder"); this.TB_cc.Attributes.Add("placeholder", compIdioma["TB_cc"].ToString()); this.TB_Telefono.Attributes.Remove("placeholder"); this.TB_Telefono.Attributes.Add("placeholder", compIdioma["TB_Telefono"].ToString()); this.TB_Direccion.Attributes.Remove("placeholder"); this.TB_Direccion.Attributes.Add("placeholder", compIdioma["TB_Direccion"].ToString()); this.TB_Email.Attributes.Remove("placeholder"); this.TB_Email.Attributes.Add("placeholder", compIdioma["TB_Email"].ToString()); this.TB_Pass1.Attributes.Remove("placeholder"); this.TB_Pass1.Attributes.Add("placeholder", compIdioma["TB_Pass1"].ToString()); this.TB_Pass2.Attributes.Remove("placeholder"); this.TB_Pass2.Attributes.Add("placeholder", compIdioma["TB_Pass2"].ToString()); this.BtnRegistrar.Text = compIdioma["BtnRegistrar"].ToString(); this.div_alr.InnerHtml = compIdioma["div_alr"].ToString() + "<a href='../Presentacion/LoginUsr.aspx' id='here'>" + compIdioma["here"].ToString() + "</a>" + " " + compIdioma["end_div"].ToString(); } catch (Exception ex) { } }
protected void Page_Load(object sender, EventArgs e) { L_Master_Home logica = new L_Master_Home(); //CAMBIAR FUNCIONES PerfilUsr.Visible = logica.validaciones(IsPostBack, Session["Sesion"]); U_aux_master_home info = new U_aux_master_home(); info = logica.generar_datos_session(IsPostBack, Session["Sesion"]); IMG_UsuarioBarraHome.ImageUrl = info.RutaFoto; LB_NombreUsuarioBarraHome.Text = info.NomUsuario; Registro.Visible = info.RegistroVisible; //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 7; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.man_usr.InnerText = compIdioma["man_usr"].ToString(); this.tien.InnerText = compIdioma["tien"].ToString(); this.tienda.InnerText = compIdioma["tien"].ToString(); this.pags.InnerHtml = compIdioma["pags"].ToString() + " <i class='fa fa-angle-down'></i> <span class='arrow top'></span>"; this.perf.InnerText = compIdioma["perf"].ToString(); this.about_us.InnerText = compIdioma["about_us"].ToString(); this.who_are.InnerText = compIdioma["who_are"].ToString(); this.regi.InnerHtml = compIdioma["regi"].ToString() + " <i class='fa fa-angle-down'></i> <span class='arrow top'></span>"; this.as_usr.InnerText = compIdioma["as_usr"].ToString(); this.as_company.InnerText = compIdioma["as_company"].ToString(); this.start_session.InnerText = compIdioma["start_session"].ToString(); this.serv.InnerHtml = compIdioma["serv"].ToString(); this.A1.InnerHtml = compIdioma["A1"].ToString(); this.A2.InnerHtml = compIdioma["A2"].ToString(); this.A3.InnerHtml = compIdioma["A3"].ToString(); this.a4.InnerHtml = compIdioma["a4"].ToString(); this.a5.InnerHtml = compIdioma["a5"].ToString(); this.a6.InnerHtml = compIdioma["a6"].ToString(); } catch (Exception ex) {} }
protected void Page_Load(object sender, EventArgs e) { swGamesCol.ServiceToken token = new swGamesCol.ServiceToken(); try { swGamesCol.Facebook_servideSoapClient etiqueta = new swGamesCol.Facebook_servideSoapClient(); { token.sToken = "compramaticfHFJO310ucxAKiDxjUwl"; }; string sToken = etiqueta.AutenticacionCliente(token); if (sToken.Equals("-1")) { Response.Write("<Script Language='JavaScript'>parent.alert('Token invalido');</Script>"); throw new Exception("token invalido"); } token.AutenticacionToken = sToken; etiqueta.postpc(token); //string m = "probando mensajes"; //Response.Write("<Script Language='JavaScript'>parent.alert('" + m + "');</Script>"); GV_miPost.DataSource = this.obtenerPost(token); GV_miPost.DataBind(); //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 41; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.title.InnerHtml = compIdioma["title"].ToString(); } catch (Exception ex) { } } catch (Exception ex) { Response.Write("<Script Language='JavaScript'>parent.alert('" + ex.Message + "');</Script>"); } }
protected void Page_Load(object sender, EventArgs e) { //IDIOMA Object sesidioma = Session["idiomases"]; Int32 formulario = 16; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); L_Idioma idiot = new L_Idioma(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.title.InnerText = compIdioma["title"].ToString(); } catch (Exception ex) { } }
protected void RptUno_ItemDataBound(object sender, RepeaterItemEventArgs e) { Object sesidioma = Session["idiomases"]; Button btn = (Button)e.Item.FindControl("BTN_delete_img"); //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Int32 formulario = 13; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { btn.Text = compIdioma["BTN_delete_img"].ToString(); } catch (Exception ex) { throw ex; } }
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) { //SETEAR LOS DATOS L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 35; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { ((Button)e.Row.FindControl("BTN_Edit")).Text = compIdioma["GV_Edit"].ToString(); ((Button)e.Row.FindControl("BTN_Delet")).Text = compIdioma["GV_Del"].ToString(); } catch (Exception ex) { } }