Hi all,
We are creating dynamic text boxes and buttons inside a grid for each row. Now we want to create click event for each button. Tocreate button inside the grid in using ITemplate.
Code:
ImageButton imbtnAdd = new ImageButton();
imbtnAdd.ID = "imbtn" + columnName;
imbtnAdd.ImageUrl = "btn_add_icon.gif";
imbtnAdd.Width = 20;
container.Controls.Add(imbtnAdd);
Error: i have used imbtnAdd.Click += new ImageClickEventHandler(imbtnAdd_Click); but it showing error massage : imbtnAdd_Click does not exist