protected void Matiere_Enseigne_ListView_PageIndexChanging(object sender, GridViewPageEventArgs e) { Matiere_Enseigne_ListView.PageIndex = e.NewPageIndex; Matiere_Enseigne_ListView.DataBind(); presDt_popup.Show(); Load_Prestations_Details(); }
private void Load_Prestations_Details() { try { conn = new MySqlConnection(LoginForm.MyString); conn.Open(); String requette = "SELECT id_prestation_details, pointAborde FROM prestation_details WHERE id_prestation=@idp"; MySqlCommand cmd = new MySqlCommand(requette, conn); cmd.Parameters.AddWithValue("@idp", id_prestation); MySqlDataReader dr = cmd.ExecuteReader(); Matiere_Enseigne_ListView.DataSource = dr; Matiere_Enseigne_ListView.DataBind(); dr.Close(); conn.Close(); } catch (Exception ex) { } }
private void Load_Prestations_Details() { try { conn = new MySqlConnection(Authentification.MyString); conn.Open(); String requette = "SELECT id_prestation_details, pointAborde FROM prestation_details WHERE id_prestation=@idp"; MySqlCommand cmd = new MySqlCommand(requette, conn); cmd.Parameters.AddWithValue("@idp", id_prestation); MySqlDataReader dr = cmd.ExecuteReader(); Matiere_Enseigne_ListView.Columns[0].ItemStyle.HorizontalAlign = HorizontalAlign.Left; Matiere_Enseigne_ListView.Columns[1].ItemStyle.HorizontalAlign = HorizontalAlign.Center; Matiere_Enseigne_ListView.DataSource = dr; Matiere_Enseigne_ListView.DataBind(); dr.Close(); conn.Close(); } catch (Exception ex) { } }