Jan 01, 2020 01:49 AM|samwu|LINK
what difference between using a script tag and code behind in asp.net
The <script> tag in asp.net is used to define the client-side script. The <script> tag contains the scripting statements, or it points to an external script file.
Code Behind refers to the code for an ASP.NET Web page that is written in a separate class file that can have the extension of .aspx.cs or .aspx.vb depending on the language used. Here the code is compiled into a separate class from which the .aspx file
derives. You can write the code in a separate .cs or .vb code file for each .aspx page. One major point of Code Behind is that the code for all the Web pages is compiled into a DLL file that allows the web pages to be hosted free from any Inline server code.