Custom server control: specifying event declaratively on ASPX code
问题 I'm currently working on several custom ASPX server controls. Of course these controls do also expose events. Now one possibility is to register a handler in the code, more specifically in the page where the custom server control resides...like protected void Page_Load(object sender, EventArgs e) { myCustomControl.Click += new .... } But how do I have to expose the event in my server control code s.t. I can declare these event handlers directly on the ASPX code (from the Property Editor),