for (int i=0;i<dt.rows.count.i++) { ImageButton btn1 = new ImageButton(); btn1.ID = "btn1" + i; btn1.ImageUrl = "images/edit.jpg"; btn1.Click += new ImageClickEventHandler(btn1_Click); }
void btn1_Click(object sender, ImageClickEventArgs e) { this.MpopupRuleEdit.Show(); }
ASP.NET
object
ImageButton
ControlCollection
Controls.Add(btn1);
btn1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)