For instance, say a user clicks a <button>
, I understand that the event handler on the server side will be triggered.
But how is the event initiated on the client side? Since the initial page (using GET
) consists of pure HTML on the client side, does the event originate from JavaScript?
If so, does this imply that .aspx automatically generates JavaScript code on the client side first?
For example, if there is an ASP button on an .aspx page:
<asp:Button ID="btnCalculate" runat="server" Text="Calculate" Width="122px" OnClick="btnCalculate_Click" />
The OnClick
indicates that this is a JavaScript event, but where can I find the relevant JavaScript code?