I am creating a usercontrol named InvalidCaseUserControl in web forms for a web app. When I run the code in debug mode I am getting the following errors CS0079 The event 'Control.Disposed' can only appear on the left hand side of += or -=
Error CS7036 There is no argument given that corresponds to the required formal parameter 'e' of 'EventHandler'
Error CS0115 'InvalidCaseUserControl.Dispose(bool)': no suitable method found to override
How do I solve this?
Error CS7036 There is no argument given that corresponds to the required formal parameter 'e' of 'EventHandler'
Error CS0115 'InvalidCaseUserControl.Dispose(bool)': no suitable method found to override
How do I solve this?
publicpartialclass InvalidCaseUserControl : System.Web.UI.UserControl
{privateint _batchNumber;private System.ComponentModel.IContainer components = null;///<summary>/// Clean up any resources being used.///</summary>///<paramname="disposing">true if managed resources should be disposed; otherwise, false.</param>protectedoverridevoid Dispose(bool disposing)//Getting 'InvalidCaseUserControl.Dispose(bool)':no suitable method found to override
{if (disposing && (components != null))
{
components.Dispose();
}base.Disposed(disposing);
}
}