August 9, 2002 - The Benefits of Code Behind | WebReference

August 9, 2002 - The Benefits of Code Behind

Yehuda Shiran August 9, 2002
The Benefits of Code Behind
Tips: August 2002

Yehuda Shiran, Ph.D.
Doc JavaScript

Separating the JScript code from the ASP.NET code has several benefits. From the software engineering point of view, the code is better organized: every file is either 100% ASP.NET or 100% JScript .NET. Another benefit is that distributed development is easier with Code Behind. Since there are two separate files, the Web site graphic designer can work on the ASP.NET code, while the JScript hacker can program the business logic behind the scenes.

The advantage of Code Behind to you is that the .NET framework compiles your Code Behind automatically, whenever the ASP.NET page is displayed; assuming the JScript has not already been compiled, or has been changed since the last compilation. No re-compilation is done in this case.

To learn more about JScript .NET and ASP.NET, go to Column 115, JScript .NET, Part IX: Code Behind.