private void dptFecha_ValueChanged(object sender, EventArgs e) { DataSet DSDevuelve = new DataSet(); DataTable DTAlerta1 = new DataTable(); WSAdministracion.WSAdministracion WSAdmin = new WSAdministracion.WSAdministracion(); WSAdmin.Url = mdlGenerales.DireccionWS + "FazServices/WSAdministracion.asmx"; DSDevuelve = WSAdmin.DevuelveTCFecha(mdlGenerales.Conexion, dptFecha.Value.ToString("yyyy/MM/dd")); DTAlerta1 = DSDevuelve.Tables[0]; lblTcc.Text = "0"; lblTcv.Text = "0"; foreach (DataRow Row in DTAlerta1.Rows) { dptFecha.Value = Convert.ToDateTime(Row[0].ToString()); lblTcc.Text = Row[1].ToString(); lblTcv.Text = Row[2].ToString(); } }