السلام عليكم ورحمة الله وبركاته
I Create ImageButton in Run Time to get Picture from DataBase but now i need to create the event for each Image
this is my code
ImageButton[] IMG = new ImageButton[DSImage.Tables[0].Rows.Count];
if (this.DSImage.Tables[0].Rows["ImageName"].ToString() != "NoPic")
{
IMG = new ImageButton();
IMG.ImageUrl = "~/images/" + DSImage.Tables[0].Rows["ImageName"].ToString();
IMG.Width = Image9.Width;
IMG.Height = Image9.Height;
IMG.BorderColor = Image9.BorderColor;
IMG.BorderWidth = Image9.BorderWidth;
}
for (int i = 0; i < DSImage.Tables[0].Rows.Count; i++)
{
Panel2.Controls.Add(IMG);
}this code is successful to get image from database
but i nead create Event for this image
for example : when click in any image this image is zoom out in new page
Please help me