protected void Page_Load(object sender, EventArgs e) { string dateString = this.Request.Params["Date"]; DateTime date = Convert.ToDateTime(dateString); ReporterBusinessLogic reporterBusinessLogic = new ReporterBusinessLogic(); IList <ReportObjectHoursByWorker> list = reporterBusinessLogic.GetWorkedHours(date); spanLabel.InnerText = "Quantidade de horas trabalhadas por colaborador na data : " + date.ToShortDateString(); string hoursString = this.Request.Params["Hours"]; if (!string.IsNullOrWhiteSpace(hoursString)) { double hours = Convert.ToDouble(hoursString); list = list.Where(w => w.Hours >= hours).ToList(); spanLabel.InnerText += " com horas acima de : " + hours.ToString("N2"); } GridView1.DataSource = list; GridView1.DataBind(); }