protected void BindGrid2(string id)
 {
     //DataSet ds = new DataSet();
     //DataTable dt;
     //DataRow dr;
     //DataColumn pName;
     //DataColumn pQty;
     //DataColumn pPrice;
     //int i = 0;
     //dt = new DataTable();
     //pName = new DataColumn("Product_Name", Type.GetType("System.String"));
     //pQty = new DataColumn("Quantity", Type.GetType("System.Int32"));
     //pPrice = new DataColumn("Price", Type.GetType("System.Int32"));
     //dt.Columns.Add(pName);
     //dt.Columns.Add(pQty);
     //dt.Columns.Add(pPrice);
     //dr = dt.NewRow();
     //dr["Product_Name"] = "FMCG";
     //dr["Quantity"] = 2;
     //dr["Price"] = 200;
     //dt.Rows.Add(dr);
     //dr = dt.NewRow();
     //dr["Product_Name"] = "Cold Drink";
     //dr["Quantity"] = 5;
     //dr["Price"] = 480;
     //dt.Rows.Add(dr);
     //dr = dt.NewRow();
     //dr["Product_Name"] = "Biscuits";
     //dr["Quantity"] = 8;
     //dr["Price"] = 100;
     //dt.Rows.Add(dr);
     //dr = dt.NewRow();
     //dr["Product_Name"] = "Mixture";
     //dr["Quantity"] = 2;
     //dr["Price"] = 500;
     //dt.Rows.Add(dr);
     //ds.Tables.Add(dt);
     //GridView2.DataSource = ds.Tables[0];
     //GridView2.DataBind();
     GvEjercicios.DataSource = objctrRutina.verRutinaE(objdtoRutina, id);
     GvEjercicios.DataBind();
 }
    public void CargarEjercicios()
    {
        try
        {
            _log.CustomWriteOnLog("InsRutina_2", "Entro a funcion cargar ejercicios");
            DtoRutina objdtoRutina = new DtoRutina();
            objdtoRutina.FK_ITR_Cod = Convert.ToInt32(Session["Tipo_Rutina"]);
            _log.CustomWriteOnLog("InsRutina_2", " obj dtio rutina " + objdtoRutina.FK_ITR_Cod);

            DateTime FechaSel = Convert.ToDateTime(Session["PrimerDia"]);
            string   fecha    = FechaSel.ToString("yyyy-MM-dd'T'HH':'mm':'ss");
            _log.CustomWriteOnLog("InsRutina_2", "fecha " + fecha);

            GvEjercicios.DataSource = objctrRutina.verRutinaE(objdtoRutina, fecha);
            GvEjercicios.DataBind();
        }
        catch (Exception ex)
        {
            _log.CustomWriteOnLog("InsRutina_2", "error cargar ejecricios: " + ex.Message);
            throw;
        }
    }