Hi I wrote Werb User Control where I dynamically generate linkButtons. I want to handle Click (or even better Command) event, but it doesn't work. This is part of my code (I don't know if it's enought, I may put all of my code, but it's quite big)
...
LinkButton link = new LinkButton();
link.ID = lista[i].ID.ToString();
link.Text = lista[i].Opis;
link.Click += new EventHandler(onClick);
td.Controls.Add(link);
...
protected void onClick(object sender, EventArgs e)
{
Response.Redirect("Rezerwacje.aspx");
} ...
Go to the complete details ...