stevenk140
Programmer
For some reasons I am not getting an imagebutton event.
I create the image button dynamically :
ImageButton imageButton = new ImageButton();
imageButton.ImageUrl = "../Images/editsm.gif";
e.Item.Cells[ i].Controls.Add(imageButton);
imageButton.Command += new CommandEventHandler(this.btn_Click);
Then I have the function:
private void btn_Click(object sender, CommandEventArgs e)
{
// Break point set here
}
And my code never gets to the break point.
Please help.
Steven
I create the image button dynamically :
ImageButton imageButton = new ImageButton();
imageButton.ImageUrl = "../Images/editsm.gif";
e.Item.Cells[ i].Controls.Add(imageButton);
imageButton.Command += new CommandEventHandler(this.btn_Click);
Then I have the function:
private void btn_Click(object sender, CommandEventArgs e)
{
// Break point set here
}
And my code never gets to the break point.
Please help.
Steven