JScript .NET, Part IX: Code Behind
add Web service in particular. In Part VIII, we showed you how to consume the
IsPrime Web service. In this column, we introduce the concept of Code Behind.
The concept of Code Behind promotes the separation between ASP.NET and JScript .NET. ASP.NET pages (
.aspx) should take care of the Web site GUI, while the JScript .NET file (
.aspx.js) should take care of the page's event handlers and business logic. We'll demonstrate the Code Behind idea with three examples. The first one is a simple Hello World page. The second example shows how to consume the
add Web service. The third example shows how to consume the
IsPrime Web service.
In this column you will learn:
The following files were zipped for you:
Next: How to benefit from Code Behind