protected void chargerCommentaires() { Commentaires comm = new Commentaires(); DataTable nbComm = new DataTable(); nbComm = comm.getNbCommentairesByListe(int.Parse(listePersonnes.SelectedItem.Value)); lbl_nbCommentaires.Text = nbComm.Rows[0].ItemArray.GetValue(0).ToString() + " commentaires : "; DataTable comments = new DataTable(); comments = comm.getCommentairesByPersonneListe(int.Parse(listePersonnes.SelectedItem.Value)); gridView_Commentaires.DataSource = comments; gridView_Commentaires.DataBind(); }
protected void chargerCommentaires() { Commentaires comm = new Commentaires(); String id_evenement = ViewState["evenementId"].ToString(); DataTable nbComm = new DataTable(); nbComm = comm.getNbCommentairesByListe(int.Parse(listeParticipantAyantListe.SelectedItem.Value), int.Parse(id_evenement)); lbl_nbCommentaires.Text = nbComm.Rows[0].ItemArray.GetValue(0).ToString() + " commentaires : "; DataTable comments = new DataTable(); comments = comm.getCommentairesByPersonneListe(int.Parse(listeParticipantAyantListe.SelectedItem.Value), int.Parse(id_evenement)); gridView_Commentaires.DataSource = comments; gridView_Commentaires.DataBind(); }