bonjour,
j'aimerais savoir comment créer un tableau de type html en c# dans une application .aspx.
En fait, j'aimerais afficher un "select * from ..." dans un tableau de type html.
Je sais comment faire en php mais pas en C#. si quelqu'un pouvaitm m'aider.
Merci d'avance
En php ca donne :
echo
("
<table bgcolor='#cecece' align='center' border>
<tr>
<th>Code client</th><th>Nom</th><th>Statut</th><th>Revenu mensuel</th>
</tr>
");
for($i = 0; $i<count($tab); $i++)
{
$row = $tab[$i];
echo("<tr> <td>$row->code_client</td><td>$row->nom</td><td>$row->statut</td><td>$row->revenu_mensuel</td>
</tr>");
unset($row);
}
echo "</table>";