Create an Array.
ImageButton ib[];
ib = new ImageButton[]{this.ImageButton1, this.ImageButton2, this.ImageButton3, this.ImageButton4, this.ImageButton5}
Now you could loop through this array however you have to, for example:
foreach(ImageButton btn in ib){
btn.ImageUrl = "./somepage.aspx"
}
hth
"The one language all programmers understand is profanity."
|