예제 #1
0
        protected void lkDenuncias_Click(object sender, EventArgs e)
        {
            LinkButton drp = (LinkButton)sender;

            GridViewRow gv = (GridViewRow)drp.NamingContainer;

            int index = gv.RowIndex;

            LinkButton lkDenuncias = (LinkButton)gvEquipList.Rows[index].FindControl("lkDenuncias");

            id_equip.Value             = gvEquipList.Rows[index].Cells[0].Text;
            btSimDenu.CausesValidation = true;
            rfvProb.Enabled            = true;
            MPE_Denu.Show();
        }
예제 #2
0
        protected void lkDenu_Click(object sender, EventArgs e)
        {
            LinkButton drp = (LinkButton)sender;

            GridViewRow gv = (GridViewRow)drp.NamingContainer;

            int index = gv.RowIndex;

            LinkButton lkDenu = (LinkButton)gvReqList.Rows[index].FindControl("lkDenu");

            Requisicoes req = RequisicoesDAO.GetRequisicaoByID(Convert.ToInt32(gvReqList.Rows[index].Cells[0].Text));

            id_equip.Value             = req.id_equip.ToString();
            btSimDenu.CausesValidation = true;
            rfvProb.Enabled            = true;
            MPE_Denu.Show();
        }