How to Create an Event in ASP.NET User Control
October 26th, 2009
No comments
Let’s assume we have a control ShippingSelect.ascx and we would like to assign an event like ItemCommand.
Firstly we add a new User Control to our project (ShippingSelect.ascx) and at the code behind we need to declare the name of the event using the EventHandler<TEventArgs> where TEventArgs is an EventArgs that contains the event data.