1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| protected void ButtonRechercheNumeroBO_Click(object sender, EventArgs e)
{
GridViewRechercheNumeroBO.Columns.Count=6;
try{
globale.oConnexion.Open();
globale.oCommand.CommandText = "select sujet,numeroBO,datePublication,nomFichier from [dbo].[TextesLois] where numeroType =N'" + TextBoxNumeroBO.Text + "'";
globale.oCommand.ExecuteNonQuery();
globale.drUtilisateur = globale.oCommand.ExecuteReader();
if (globale.drUtilisateur.HasRows)
{
while globale.drUtilisateur.Read()
{
GridViewRechercheNumeroBO.Rows.
}
els
{
}
}
globale.drUtilisateur.Close();
}
catch (Exception err)
{
}
} |
Partager