anjumathi kumar

anjumathi kumar

  • NA
  • 54
  • 49.4k

How to call click in image

Aug 3 2011 5:54 AM
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)