"What is (object sender, EventArgs e)" Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "What is (object sender, EventArgs e)" answered properly. Developers are finding an appropriate answer about What is (object sender, EventArgs e) related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like What is (object sender, EventArgs e). Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on What is (object sender, EventArgs e).
What is (object sender, EventArgs e)
it is a standard in .NET that event handlers have this signature, usually declared by some delegate types for example EventHandler. sender references the object that raised the particular event, for example with Button's Click it would let you reference the Button control via sender argument.
EventArgs represents the data related to that event, and can be used to pass parameters, state information whatsoever to the event handler for the handling code to decide what to do. In this case it is just EventArgs which represents empty event arguments but for example if you have ImageButton's Click handler, you'll note that it's event arguments provide you access to the X and Y coordinates. In other words, Event args can be represented by more specific classes with event related data, depending on the control
sender is the object sender that raised the event.. like for instance if you want to get the spefic rowindex of the Button control that resides in the GridView when clicking on a partucular Button in the Grid, then you can simply cast the sender who raised the event like below.. see highlighted line below
protected void Button1_Click(object sender, EventArgs e)
{
Button b = (Button)sender;
string objSenderID = b.ID;
GridViewRow row = (GridViewRow)b.NamingContainer;
if (row != null)
{
int index = row.RowIndex;
}
}
while e is the Event Argument of the object and basically contains the event data.. see the following link below for more detail information
http://msdn.microsoft.com/en-us/library/system.eventargs.aspx
Source: forums.asp.net
All those coders who are working on the Whatever based application and are stuck on What is (object sender, EventArgs e) can get a collection of related answers to their query. Programmers need to enter their query on What is (object sender, EventArgs e) related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about What is (object sender, EventArgs e) for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of What is (object sender, EventArgs e) while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "What is (object sender, EventArgs e)". Visit this developer's friendly online web community, CodeProZone, and get your queries like What is (object sender, EventArgs e) resolved professionally and stay updated to the latest Whatever updates.