asp.net - Is there any reason to put code in the code behind rather than in the aspx file? -
any time need write code put in code behind file. reason has seemed "right" way write code.
based on of examples see online, lot of other people choose write code way too, seems putting code in aspx file allows same stuff offering few advantages.
top of list being:
- easier make changes since no recompile.
- you have access code if can't find project in source control (this happened me).
is there benefit having code in code behind file? there disadvantage putting code in aspx file?
separating code markup results in cleaner structure, non-trivial pages.
1 of major benefits asp.net on asp classic.
Comments
Post a Comment