1
Answer

How to call click in image

anjumathi kumar

anjumathi kumar

13y
1.6k
1
Hi this is my code but if i clicked image the get function not called not fire ..why?
its dynamic creating button

public void addimage()
{
for loop
{
ImageButton btn1 = new ImageButton();
btn1.ID = "btn1" + i;
btn1.Click +=
btn1.ImageUrl =new ImageClickEventHandler(get);"images/edit.jpg";
}
}




public void get(object sender, EventArgs e){

mopopupeditrule.Show();//this my ajax control modalpopup
}
but if i click the image button the
modalpopupwant to show..but it
does not work kile i given above


Answers (1)