J
Jeff
I have created an array of buttons at run time and need to associate them a
click event. I have added the following routine as the event:
public void UpdateClick(Object sender, EventArgs e)
{
lblError.Visible=true;
lblError.Text="It worked";
}
Below I have included the line of code used to hook up the button with the
event:
btnUpdate[intElement1].Click+=new System.EventHandler(UpdateClick);
The code in the click routine does not run when the button is clicked. Can
anyone tell me what I am missing? Thanks in advance.
Regards,
Jeff
click event. I have added the following routine as the event:
public void UpdateClick(Object sender, EventArgs e)
{
lblError.Visible=true;
lblError.Text="It worked";
}
Below I have included the line of code used to hook up the button with the
event:
btnUpdate[intElement1].Click+=new System.EventHandler(UpdateClick);
The code in the click routine does not run when the button is clicked. Can
anyone tell me what I am missing? Thanks in advance.
Regards,
Jeff