0

I am new to web applications.

I was a windows application programmer. When I write a windows application, there is a message loop which passes received windows messages (e.g. WM_SIZE, WM_MOVE, etc.) to handlers.

Some frameworks (e.g. WinForms, WPF, MFC) do not require applications to directly access the message loop, but instead automatically route events such as key presses and mouse clicks to their appropriate handlers.

Now I am working on web applications using ASP.NET. Does there exist a similar event routing mechanism in ASP.NET? How does it work? If a client side user click a button on the web page, how does ASP.NET find the appropriate handler to hande the OnClick event?

4

1 回答 1

1

It's a part of the page life cycle. See http://msdn.microsoft.com/en-us/library/ms178472(VS.100).aspx and look at 'Control events' under 'life-cycle events'.

于 2013-09-03T10:47:57.530 回答