protected void CheckforException(object sender, ObjectDataSourceStatusEventArgs e) { MessageUserControl1.HandleDataBoundException(e); }
protected void checkForException(object sender, ObjectDataSourceStatusEventArgs e) { MessageUserControl1.HandleDataBoundException(e); //MessageUserControl1 is The name of MessageUserControl }