Last post Dec 27, 2009 03:57 AM by dreamlusion
Dec 26, 2009 01:47 PM|rickjackson|LINK
For E.g : DropDownlistSelectedIndexChanged,Grid_Editing,Deleting onClick etc. Means When i double click from the designer then designer should generate an event in Code-Behind file.
So Please tell how can i create a custom event in a Custom Control.
Dec 27, 2009 03:57 AM|dreamlusion|LINK
What follows is a UserControl with a CoolEvent. You can fire the CoolEvent from codebehind by calling the
<%@ Control Language="C#" ClassName="UserControlWithCoolEvent" %>
public event EventHandler CoolEvent;
protected void OnCoolEvent(EventArgs e)
if (CoolEvent != null)