D
Daves
I have a control defined:
<asp:AccessDataSource ID="ADS1" OnUpdated="ADS_OnUpdated" [...]>
and in code behind:
protected void OnUpdated(object sender, SqlDataSourceStatusEventArgs e)
{
ADS1.Updated -= new System.EventHandler(AD1_OnUpdated);
}
And this won't work: CS0123: No overload for 'AD1_OnUpdated' matches
delegate 'System.EventHandler'
Also, is there some way to just simply clear all event handlers for the
control?
<asp:AccessDataSource ID="ADS1" OnUpdated="ADS_OnUpdated" [...]>
and in code behind:
protected void OnUpdated(object sender, SqlDataSourceStatusEventArgs e)
{
ADS1.Updated -= new System.EventHandler(AD1_OnUpdated);
}
And this won't work: CS0123: No overload for 'AD1_OnUpdated' matches
delegate 'System.EventHandler'
Also, is there some way to just simply clear all event handlers for the
control?