Quantcast
Channel: CodeProject Latest postings for ASP.NET
Viewing all articles
Browse latest Browse all 3938

How do I solve InvalidCaseUserControl.Dispose(bool) no suitable method found to override

$
0
0
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?

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);
    }
}

Viewing all articles
Browse latest Browse all 3938

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>