InternetUnicodeHTMLCSSScalable Vector Graphics (SVG)Extensible Markup Language (xml)ASP.NetDocument Object Model (DOM)JavaScript ASP Draft for Information Only
Content
ASP Element
ASP ElementASP Element of a ASP file is a division of scripting commands. The scripts are enclosed by delimiters "<%" and "%>". The HTML tags are transferred to the browser directly, but the scripts between the delimiters "<%" and "%>" will be interpreted on the server by the ASP engine. The delimiters "<%" and "%>" can be either on the same line with the scripts <% Response.Write ("<h1>ASP Sample</h1>") %> or on an individual line. <%
And, the space between the delimiter and script is not necessary because ASP engine removes white space including spaces, tabs, returns, and line feeds from both VBScript and JScript command of an ASP file. But for other scripting languages, the ASP engine preserves white space so that scripting languages dependent upon position or indentation can be interpreted correctly. <%Response.Write ("<h1>ASP Sample</h1>")%> Comment the script between the delimiters can be done by placing an apostrophe(') at the beginning of a line. And it is better to place another apostrophe(') at the end of a line for better compatibility with JScript. Unlike the HTML comments and client-side scripting comments, the server-side comments are removed by the interpreter during processing and no server-side comment will be sent to the browser. <% ' comment %> Scripting LanguageASP engine of Internet Information Server provides native support for both Microsoft VBScript and JScript. Both VBScript and JScript can be used as the scripting language for ASP. The default scripting language is VBScript. The scripting language is the tool used as the programming language for web application development. The scripting language allows the web site builder to customization their web site by making use of the conditional and looping statements, and the built-in functions VBScript is a subset of Visual Basic. The functions of VBScript on the server used with ASP is limited. The variables used in VBScript are of type variant. Variables can be used without declaration. Conversion functions are available for different data types conversion whenever necessary. The option of specifying the lower bound of a array is not available and the default low bound value is zero. Besides VBScript cannot interact with the Windows API directly unless the Windows API is packed as an ActiveX objects. But only two ActiveX commands are supported. The scripts between delimiters "<%" and "%>" are VBScript commands to be interpred by the ASP engine. A line break is used to indicate the end of a VBScript command. <%
Multiple VBScript commands can also be put on a single line if these commands are seperated by a colon. <%
For a very long VBScript command, the command can go multiple lines by adding a underscore preceded by a space at the end of the line. <%
ActiveX ScriptBesides VBScript and JScript, other third-party ActiveX compliant Scripting engines can also be used. The key feature of these ActiveX Scripting engines is the capability of calling ActiveX objects and the built-in ASP objects. For VBScript, the ActiveX commands are: <%
ASP ObjectThe ASP technology is a technology for creating dynamic web pages by making use of scripting commands and reusable ActiveX server objects. Objects used in ASP technology resemble other Onject Oriented Programming Languages. The creation of ASP technology is to simplify the development of a dynamic web application. Therefore standard ASP objects are built-in with ASP technology to handle the interaction between the server and the client, and to store and to gather necessary information for the web application. These built-in ASP objects are ASP intrinsics created for global use and no instance of the object is needed to be created before using these built-in ASP objects. The built-in ASP objects are:
ASP ComponentsAn ASP component is an executable self contained code with specific functions designed for providing one or more objects by performing those specific functions within the component. In general, an object instance is collections of information with specific methods to carry out some predefined procedures for manipulating the properties of an instance of an object by modifying its attributes created by the execution of the corresponding ASP component. An instance of the object can be created by assigning a new variable name to the ASP object provided by the ASP component using the ASP Server.CreateObject method. Since the ASP Server.CreateObject method needs the registered name of the ASP component, the ASP component should be registered before the ASP component can be used to provide ASP objects. To enhance the usability of ASP technology, some built-in components are available to manipulate and to access the data, files and file system on a server. For example
Besides, there are also some base components to enrich the pre-made functions of ASP technology
ASP Output DirectiveASP support the output directives <%= expression %> to displays the value of an expression. The output directive is equivalent to the Response.Write method to display the value of an parameter. ASP Processing DirectivesEach ASP page can have individual control setting for processing the ASP files. ASP support @processing directives, which must be the first command within the ASP page, usually placing at the begining of an ASP file to pass information to the web servre on how to process the ASP file.
Global.asaBesides the processing setting of an ASP file, ASP also support a global control setting for the application by placing a global.asa file in the root directory of the application. This is an optional file and an application can only have one global.asa file control setting only. The contents of a global.asa file are
Server-Side ScriptAnother useful feature of ASP technology is the server-side script <SCRIPT runat="server> element. This feature allows the resembling of multilines of inline script of a specific purpose into a modular base functional module. <script language = "vbscript" runat = "server"> Server Side Include FileIn order to increase the flexibility and reusing of existing contents, ASP provide a server-side include directive #include directive for inserting the content of one file into a file before the web server processing it. Therefore some common functions, headers, footer, or elements can be reused on multiple pages. Because the #include directive is used to insert a file into the ASP file before the ASP engine processing it, the #include directive is placed outside the ASP delimiters for easier to manage. Instead of using a new HTML tag, the #include directive is placed inside a HTML comment tag for preventing the #include directive rendered in the HTML document by mistake. Usually the #include directive is placed immediately after the open comment character with a preceded space. The #include directives are
There is no special requirement on the file name extension. The file name extension of an included file can be .inc for easier to distinguish them from other types of files. But the file name extension of an included file can also be .asp so that these file will be interpreted before response to the client. ASP KeywordsThe following are ASP keywords which are predefined reserved identifiers corresponding to ASP page directives, the ASP built-in objects, or intrinsic objects, andr global.asa elements respectively that have special meanings to the compiler.
The complete list of ordered ASP keywords
©sideway ID: 120100021 Last Updated: 12/20/2012 Revision: 1 Ref: References
Latest Updated Links
|
Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Reference 79 Computer Hardware 249 Software Application 213 Digitization 32 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 429 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019