Calling the UserControl Event from the WebForm
The main theme behind this article is give the clear idea about the event and the event handling in .NET. An event is a message sent by an object to signal the occurrence of an action. This action caused by the user interaction such as button click,mouse click e.t.c.The Object that send the event is called the event sender. The object that receives the event and respond according to that is called the event receiver. Actually in communication between the sender and the receiver ,the sender does not know which method or object will receive the event it raises. The mediator between these two is called “Delegate”. A delegate is a class that can hold a reference to a method .The Delegate class has a signature and it can hold the reference only to the methods that match to its signature. Normally I found the requirement to save the main page data in the user control button click which led me to write this article. Here I have taken a user control which c...