ASP.NETEvent Handling


  • private void EventName (object sender, EventArgs e);


object sendersender refers to the object that invoked the event that fired the event handler. This is useful if you have many objects using the same event handler.
EventArgs eEventArgs is something of a dummy base class. In and of itself it's more or less useless, but if you derive from it, you can add whatever data you need to pass to your event handlers.