javascript - Where does an ASP.NET code-behind file execute? (client or server) -
javascript - Where does an ASP.NET code-behind file execute? (client or server) -
my friend experienced developer (but not familiar .net) asked me asp.net code-behind code executed; on server or on client. assumption executed on client , hence compiled javascript, since methods in code-behind file respond client-side events such selecting dropdown list, not cause postback.
what i'm looking more intimate understanding of how/where code in code-behind file executed in relation rest of application.
the codebehind executes on server. that's reason, called asp.net webforms
. when web page executed, below happens in nutshell.
the next question ... how asp.net server side know events performed on client side execute appropriate events on server side?
the reply is, asp.net converts each web command 1 or more html elements & names them uniquely can name of html element generating event(s) , deed accordingly. uses viewstate
(apart various other uses) create sure html controls names not tampered in roundtrip.
the link given in other reply should help understand more.
javascript asp.net code-behind execution
Comments
Post a Comment