D
David W. Simmonds
I have a Button in a DataList Footer. I add the click event like this:
void Item_DataBound(Object sender, DataListItemEventArgs e)
{
if(e.Item.ItemType == ListItemType.Footer)
{
Button ctlSave = (Button)e.Item.FindControl("ctlSave");
ctlSave.Click += new EventHandler(ctlSave_Click);
}
}
It seems that the ctlSave_Click method is never called though. Am I doing
this right?
void Item_DataBound(Object sender, DataListItemEventArgs e)
{
if(e.Item.ItemType == ListItemType.Footer)
{
Button ctlSave = (Button)e.Item.FindControl("ctlSave");
ctlSave.Click += new EventHandler(ctlSave_Click);
}
}
It seems that the ctlSave_Click method is never called though. Am I doing
this right?