[C# 2.0] problème d'évènement onclick en code-behind
Bonjour à tous,
j'essaye de faire en sorte qu'un control linkbutton exécute une méthode
en code-behind mais l'évènement OnClick ne fonctionne pas
Voici ce que je fais :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
//dans le page_load
TableCell tblCellTroisJours = new TableCell();
LinkButton listeTroisJours = new LinkButton();
listeTroisJours.Text = "3";
listeTroisJours.ID = "listeTroisJours";
listeTroisJours.OnClientClick = "listeTroisJours_Click";
tblCellTroisJours.Controls.Add(listeTroisJours);
protected void listeTroisJours_Click(object sender, EventArgs e)
{
ChargementListeATraiter("3");
} |
Merci pour votre aide !