In an exam I have to find out anwser of this question about asp.net.
the question is, if we have a variable named 'pagehits', and we increment this var by 1 in both page_init and page_load functions. After making 20 requests from 20 diffrent clients, what will be the final value of 'pagehits'? I know that page_init fires only once, but if 20 diffrent users send the request, how many times would that fires? So we know that in this senario Page_Load function fires 20 times; does page_init fire only one time or it fires for all 20 clients?
and is the answer pagehits=21 correct or 40?
'pagehits' default value is zero.
thank you very much