if (CurrentPage["AntallBilderFlash"] != null) // CurrentPage["AntallBilderFlash"] is the number 22 { int b = Convert.ToInt32(CurrentPage["AntallBilderFlash"]); // int p = 1; int i = 1; int i1 = 2; int i2 = 3; string urler = "http://localhost/global/bilderflash/"; string name= "pic"; string slutt =".png"; do { Label1.Text = "<div><img src='" + urler + "" + name+ "" + i + "" + slutt + "'/><img src='" + urler + "" + name+ "" + i1 + "" + slutt + "'/><img src='" + urler + "" + name+ "" + i2 + "" + slutt + "'/></div>"; //i = i+3; //this.Controls.Add(Label1); i++; } while (i < b); }
if (CurrentPage["AntallBilderFlash"] != null) // CurrentPage["AntallBilderFlash"] is the number 22