Is there any reason to put code in the code behind rather than in the aspx file?
<p>Any time I need to write code I almost always put it in the code behind file.  For some reason this has always seemed like the "right" way to write code.</p>

<p>Based on most of the examples I see online, a lot of other people choose to write code this way too, but it seems like putting your code in the aspx file allows you to do all the same stuff as well as offering a few advantages.  </p>

<p>Top of the list being:</p>

<ul>
<li>Easier to make changes since no
recompile.</li>
<li>You have access to all code if
you can't find the project in source
control (this recently happened to
me).</li>
</ul>

<p>Is there any benefit to having code in a code behind file?  Is there any disadvantage to putting code in your aspx file?</p>
