July 29, 2002 - JScript .NET Directives | WebReference

July 29, 2002 - JScript .NET Directives

Yehuda Shiran July 29, 2002
JScript .NET Directives
Tips: July 2002

Yehuda Shiran, Ph.D.
Doc JavaScript

The top portion of an ASP.NET page includes two types of directions. First, the scripting language is specified:

  <%@ Page LANGUAGE="JScript" %>
Secondly, you need to specify the namespaces you want to import. For example:

  <%@ import namespace="calcService" %>
calcService is the namespace you specified during the wsdl command:

  wsdl /l:js /namespace:calcService /out:calcProxy.js 
    http://localhost/Column113/simpleCalc.asmx
To learn more about JScript .NET and ASP.NET, go to Column 113, JScript .NET, Part VII: Consuming add from ASP.NET.