コード例 #1
0
 protected void gdvMiembrosAct_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "cmdMName")
     {
         LinkButton link = (LinkButton)gdvMiembrosAct.Rows[Convert.ToInt32(e.CommandArgument)].FindControl("btnMName");
         M = link.Text;
         mst.seleccionarMiembro(M);
         Response.Redirect("~/MISC/PerfilMiembro.aspx");
     }
 }
コード例 #2
0
 protected void gdvMiembrosOtraInfo_OnRowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "cmdMemberId")
     {
         gdvMiembrosOtraInfo.Columns[0].Visible = true;
         String M = gdvMiembrosOtraInfo.Rows[Convert.ToInt32(e.CommandArgument)].Cells[0].Text;
         gdvMiembrosOtraInfo.Columns[0].Visible = false;
         mst.seleccionarMiembro(M);
         Response.Redirect("~/MISC/PerfilMiembro.aspx");
     }
     if (e.CommandName == "cmdFamilyId")
     {
         gdvMiembrosOtraInfo.Columns[1].Visible = true;
         String F = gdvMiembrosOtraInfo.Rows[Convert.ToInt32(e.CommandArgument)].Cells[1].Text;
         gdvMiembrosOtraInfo.Columns[1].Visible = false;
         mst.seleccionarFamilia(F);
         Response.Redirect("~/MISC/PerfilFamilia.aspx");
     }
 }