Posted on: 6/6/2014 4:58:21 PM | Views : 433

hi guys,
am trying to create an array of imagebuttons on the fly, however its not working properly.
here is my code below
NOTE - I searched online for a simple code that works, but found nothing. Only complex image generations. Please advise
thanks

Ehi

protected void Page_Load(object sender, EventArgs e) { String c = "one,two,three,four"; string[] x = c.Split(','); var i = new ImageButton(); int number = 0; int total; total = x.GetUpperBound(0) ; i.Click += (source, args) => { while (number < total) { Console.WriteLine(number); number = number + 1; i.ImageUrl = "~/images/cart"+total.ToString() ...

Go to the complete details ...