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
- code-behind approch in which we usually we seprate our server code aspx.cs file from aspx file
- we can directly write server side code in aspx page by writing //server side codebefore html tag ?
so i wnat to know that is ther any authentic reasion which provide advatage in code-behind approch.