Suppose there is a button (not a submit , but a regular button), with the prefix asp ( asp:button ) and the attribute runat = server .
On the click event, she has a handler written in C # / VB / managed C ++ in codebehind. But, the browser, of course, does not understand C # / VB / managed C ++ and here I am confused, since there are 2 ways of processing:
- in order to handle the click event of the browser, after a click, it sends a request to the server, and the server starts a dll, in which there is code to handle the click on the button.
- Before sending the page to the browser from the very beginning, the server processes the click processing code written in C # / VB / managed C ++ into Javascript, and together with the page sends the js script to the browser, and the script written by js was processed when the button was clicked.
Question: ASP.NET: server controls (prefixed with ASP ) are processed on the server via C #, VB or on the client, via JS? Thank you in advance.