Hi Cengiz,
Here's a basic example for dynamic creation of an ImageButton using Code-Behind:
private void RenderImageButtons()
{
ImageButton img = new ImageButton();
img.ID = "img";
img.AlternateText = "ImageButton";
img.Command +=new CommandEventHandler(img_Command);
img.CommandName = "select";
img.CommandArgument = "~/ConcertTickets.aspx";
img.Width = Unit.Percentage(100.00);
this.Page.Controls.Add(img);
}
You can handle an array of course, give each ImageButton it's ID so that you can then access it and relate to it, or handle it's properties etc.
Cheers,
Edo