Why are we using code fix in asp.net?

I want to know why we use code behid approch. if there is any advantage, then do I like the share? since we know that there are two methods for writing server-side code for aspx.file

  • code-behind approch, in which we usually separate our aspx.cs server code from an aspx file
  • can we directly write server side code on an aspx page by writing // server side code above the html tag?

so I know that this is any genuine excuse that provides encoding support behind.

+3
source share

Source: https://habr.com/ru/post/1762815/


All Articles