Afficher le resultat d'une requete SQL dans un TextBox
Bonjour,
Je suis sur Visual Studio 2015
J'aimerai afficher le résultat d'une requete SQL dans un TextBox.
J'ai créer une source de données de l'objet Client
Code:
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
| namespace Gestion_Commercial.Controleur
{
public class Client
{
public string CLI_CODE { get; set; }
public string CLI_NOM { get; set; }
public string CLI_PRENOM { get; set; }
public string CLI_ADRESSE_1 { get; set; }
public string CLI_ADRESSE_2 { get; set; }
public string CLI_CP { get; set; }
public string CLI_VILLE { get; set; }
public string CLI_MAIL { get; set; }
public Client(string code, string nom, string prenom, string adresse1, string adresse2, string cp, string ville, string mail)
{
this.CLI_CODE = code;
this.CLI_NOM = nom;
this.CLI_PRENOM = prenom;
this.CLI_ADRESSE_1 = adresse1;
this.CLI_ADRESSE_2 = adresse2;
this.CLI_CP = cp;
this.CLI_VILLE = ville;
this.CLI_MAIL = mail;
}
public Client()
{
}
}
} |
Ca a créé des Label et des TextBox.
Mais maintenant je n'arrive pas a récuperer les informations dans les TextBox.
Comment puis je faire ?
Merci de m'aider, je suis débutant en C#.
Cordialement