why we use code-behind approch in asp.net?
<p>i want to know that why we use code behid approch. if there is some advantage then plese share to me ? as we know that there is two methode for writing server side code for
aspx.file </p>

<ul>
<li>code-behind approch in which we usually we seprate our server code aspx.cs file from aspx file </li>
<li>we  can directly write server side code in aspx page by writing //server side codebefore html tag ?</li>
</ul>

<p>so i wnat to know that is ther any authentic reasion which provide advatage in code-behind approch.</p>
