private void BindStanze() { if (Request.QueryString["idbl"] != null) { Servizi _Servizi = new Servizi(); string idPiano = Request.QueryString["idpiano"]; string idEdificio = Request.QueryString["idbl"]; string descrizione = Request.QueryString["descrizione"].Trim(); DataSet ds = _Servizi.GetStanzeBuilding(int.Parse(idEdificio), int.Parse(idPiano), descrizione); MyDataGrid1.DataSource = ds; elementiTrovati = Convert.ToString(ds.Tables[0].Rows.Count); MyDataGrid1.DataBind(); } }
private void BindEqstd() { if (Request.QueryString["idbl"] != null) { Servizi _Servizi = new Servizi(); DataSet ds = _Servizi.GetAllEQSTD( Convert.ToInt32(Request.QueryString["idbl"]), Convert.ToInt32(Request.QueryString["idpiano"]), Convert.ToInt32(Request.QueryString["IdServizio"]), Request.QueryString["descrizione"].Trim()); MyDataGrid1.DataSource = ds; elementiTrovati = Convert.ToString(ds.Tables[0].Rows.Count); MyDataGrid1.DataBind(); } }