I'm creating a user control and defined an event for the control. When I add the control to my web form, it doesn't add the private variable at the top of the class file, so I go ahead and add it. But when I register my event handler, I get an error stating

The type System.Web.UI.UserControl has no event named SearchClick

Any ideas