Thursday, August 15, 2013

What do Sender and EventArgs mean?

The sender is the control that the action is for (say OnClick, it's the button). The EventArgs are arguments that the implementor of this event may find useful. With OnClick it contains nothing good, but in some events, like say in a GridView 'SelectedIndexChanged', it will contain the new index, or some other useful data.

No comments:

Building APIs with ASP.NET Core

Building APIs with ASP.NET Core Introduction to ASP.NET Core for API Development ASP.NET Core is a cross-platform, high-performance ...