ASP Beginners Reference!

Source: Internet
Author: User
Tags object file system html page iis sql object model microsoft access database access
Reference | beginners | Common ACRONYMS and Chinese meanings

WWW----World Wide web (WWW)
URL----Uniform Resource Locator (Uniform Resource Locator)
HTTP----Hyper text Transfer Protocol (Hypertext Transfer Protocol)
HTML----Hyper text Markup Language (Hypertext Markup Language)
XML----Extensible Markup Language (Extensible Markup Language)
ODBC----Open DB connectivity (Open Database Connectivity standard)
DLL----Dynamic Link library
DAO----Data Access Objects (Connection object)
RDO----Remote Data Objects
ADO----Microsoft ActiveX data Objects (Dynamic object)
SQL----Structured Query Language (structured queries language)
CGI----Common Gateway Interface (Public Gateway Interface)
API----Application Programming Interface (Application programming Interface)
ASP----Active Server Pages (Dynamic services page)
PHP----Personal Homepage (personal homepage)
JSP----Java Server Pages
ColdFusion
SSI----server-side include (server-side included)
DOM----Document Object model
IIS----Internet Information Server (Network information Services)
IP----Internet Protocol (Internetwork Protocol)
TCP----Transmission Control Protocol (Transmission Control Protocol)
IE----Internet Explorer (browser)
CSS----Cascading style Sheet (cascading style sheet)
VBScript----Microsoft Visual Basic Script Edition
ISDN----Integrated Services Digital Network
Web
Ftp
Smtp
MMC----Management Console










Web Design before
The Web (WWW) provides a graphical user interface that browses documents on the Internet and the links between them constitute a vast network of information.
The web originated in March 1989 and was developed by the European Quantum Physics laboratory CERN (the Ruropean Laboratory for particle physics) as a master-slave structure distribution hypermedia system.
The web is the ocean of information resources, three elements ensure that people can easily travel in this ocean:
• Unified resource naming scheme (URL)
L access a resource in a way that is protocol (HTTP)
• A method of free access between resources, i.e. hypertext (HTTP)
With the development of the Internet, Web technology has gone through 3 stages of development:
L first generation, providing management and access to static documents (information) (display)
L second generation, combined with database systems, provides access to and display of dynamic documents (information)
Third generation, in addition to dynamic document generation and access, also provides web-based online transaction processing capabilities.
Lack of static web pages:
1. Unable to support background database
2. Unable to effectively update the site information in a timely manner
3. Can not achieve dynamic display effect
ASP is a server-side Web application development technology that Microsoft launched at the end of 1996. ASP is not a language, nor a development tool, but an easy to use embedded in the IIS/PWS, can integrate the script language to the HTML homepage of the server side of the scripting language environment, its main function is to generate dynamic, Interactive Web server applications provide a powerful way and technology.
The features of ASP are as follows:
1. ASP can mix Html,dhtml,java applet, Activex,vbscript,javascript, and can nest each other.
2. Do not need to compile, plain text format.
3. Good safety
4. Object-oriented
5. Extensible server-side functionality
6. Extensible Scripting language
7. Browser-Independent
8. ASP provides 6 built-in global objects for developers to call directly without requiring a declaration
9. ASP provides 5 important server components
The process of accessing an HTML page:
1. Enter the URL of the HTML file at the address bar of the client browser and press ENTER to send a Web request
2. Browser send Web page request to IIS/PWS server
3. The IIS/PWS server receives a request that is an HTML file by using the extension. htm or. html.
4. The IIS/PWS server takes the corresponding HTML file out of the disk or storage and sends it back to the browser
5. html files are interpreted by the user's browser and the results are displayed in the browser window
Procedures for accessing ASP Web pages:
1. Enter the URL of the ASP file to be requested in the address bar of the client browser, and press ENTER to send an ASP request
2. Browser sends ASP Web page request to IIS/PWS server
3. The IIS/PWS server receives the request and recognizes the ASP file according to the extension. asp
4. The IIS/PWS server obtains the corresponding ASP file from the disk or the memory
5. The IIS/PWS server sends an ASP file to a particular file library, named Asp.dll, similar to the engine engine
6. The Asp.dll engine interprets the ASP file from beginning to the beginning, and generates the corresponding dynamic HTML page according to the command request in ASP file
7. HTML page is sent back to the client browser
8. Interpret the execution of HTML Web pages with client browsers and display the results on the client browser
ASP has 3 important features compared to HTML:
1. asp can contain server-side scripting language, that is, you can create Web pages with dynamic content
2. ASP uses built-in objects to make scripting more powerful
3. ASP uses the component to enable the user to process the database, sends the email or accesses the file system and so on
6 built-in objects provided by ASP:
1. Response: Send message to Browser
2. Request: Used to read requests from the browser, you can use this object to read information about HTML forms
3. Server: Allow scripts to generate an instance of an active Server component
4. Application: Used to store, read user-shared application information, such as the use of this object in the site to communicate between different connectors to share information
5. Session: Used to store, read the conversation information of a particular connector, such as to store the connection's access information to the site
6. ObjectContext: For controlling ASP transactions (Transaction), transactions are managed by Microsoft Transaction Server (MTS)
5 Important components provided by ASP
1. ADO: Used to read or store data in a Microsoft SQL server,microsoft Access database
2. File system: Provides methods and properties that you can use to access your computer's file system
3. Content Linking: Display different HTML content depending on the performance of different browsers
4. Browser capabilities: Used to link different HTML pages to make it easier to operate
5. Ad Rotator: Used to display banner ads on the Web page, and to control the display frequency of different ads
Basic knowledge of ASP
ASP files have an. asp extension, which can include HTML markup, text, and scripting languages, and their scripting language code is contained between "<%......%>".
In VBScript: Annotations can be REM, ' etc.
<% Option Explicit%> indicates that variables in VBScript are declared before they can be used, or an error occurs.
file contains:<!--#include file= "Myfirstinc.inc"-->
<!--#include file= "Myfi

[1] [2] [3] [4] Next page



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.