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?