Esempio n. 1
0
        protected void lkReservar_Click(object sender, EventArgs e)
        {
            LinkButton drp = (LinkButton)sender;

            GridViewRow gv = (GridViewRow)drp.NamingContainer;

            int index = gv.RowIndex;

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

            id_equip.Value            = gvEquipList.Rows[index].Cells[0].Text;
            btSimReq.CausesValidation = true;
            rfvData.Enabled           = true;
            rfvDataIni.Enabled        = true;
            rfvDataFin.Enabled        = true;
            MPE_NewReq.Show();
        }
Esempio n. 2
0
        protected void ddlNDias_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ddlNDias.SelectedValue == "1")
            {
                lbTxtData.Visible      = true;
                tbxDataReserva.Visible = true;

                lblTxtDataIni.Visible = false;
                lblTxtDataFin.Visible = false;
                tbxDataReqFin.Visible = false;
                tbxDataReqIni.Visible = false;
            }
            else
            {
                lbTxtData.Visible      = false;
                tbxDataReserva.Visible = false;
                lblTxtDataIni.Visible  = true;
                lblTxtDataFin.Visible  = true;
                tbxDataReqFin.Visible  = true;
                tbxDataReqIni.Visible  = true;
            }
            MPE_NewReq.Show();
        }