tags:

views:

45

answers:

3

Hello

How events relationship between functions occur ?

For example:

When we click submit button how CLR or IIS determine which function has to work ?

I know how can relate functions with events but I dont know how background mechanism work.I don't know Is there reflection or another else.

+2  A: 

Through delegates

Sander Pham
A: 

This article should help you understand events and delegates, this article goes into a bit more depth

Ben Robinson
I know Events and Delegates but I can't see any Event in pre-created codes by Visual Studio
Freshblood
+2  A: 

ASP.NET has the concept of the Page Life Cycle. This is an ordered sent of events which are triggered. One important interface in this mechanism is the IPostbackEventHandler interface.

Update due to comment: The automatic eventing mechanism is turned on due to the AutoEventWireup="true" in the page directive.

Grz, Kris.

XIII
In Winforms VS automaticly relate functions by addin them into events but in WEB page, I still couln't understand it even from links.I haven't seen any code use compenents event which is created by VS.
Freshblood