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 GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { try { int index = Convert.ToInt32(e.CommandArgument.ToString()); GridViewRow row = GridView1.Rows[index]; int id = Convert.ToInt32(GridView1.DataKeys[row.RowIndex].Value); L_SolicitudesPendientes logica = new L_SolicitudesPendientes(); logica.GV1_RowCommand(e.CommandName, id, e.CommandArgument.ToString(), Session["sesion"]); GridView1.DataBind(); }catch (Exception er) { } }
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { // // Se obtiene la fila seleccionada del gridview // GridViewRow row = GridView1.SelectedRow; // // Obtengo el id de la entidad que se esta editando // en este caso de la entidad Person // int id = Convert.ToInt32(GridView1.DataKeys[row.RowIndex].Value); L_SolicitudesPendientes conexion = new L_SolicitudesPendientes(); DataTable consulta = conexion.GV_1(id); Modal(consulta); // Response.Redirect("MostrarArchivos.aspx"); }