ASP. NET tour-another interview with ASP

Source: Internet
Author: User

ASP is no longer a new term for me, because I started learning ASP a year ago. At that time, although the effect was very poor, I still had some basic understanding of ASP. ASP. NET adds some. NET features on the basis of ASP, and the basic things are still not modified.

Active Server Page is the full name of ASP. We can translate it into dynamic server pages, which are not the GIF images or flash clips we usually see on the webpage, to be named as a dynamic web page, you must be "interactive", "automatically updated", and "changed by person" (from Baidu encyclopedia ), that is to say, the dynamic web page can change the display content of the page according to the user's needs. ASP is only one kind of dynamic page technology. In the early stage, dynamic web page technology mainly adopted CGI (commongateway interface, public Gateway Interface) technology, and was later replaced by ASP. In today's age of technology flood, dynamic web page technology is not only limited to ASP, but also well-known such as PHP and JSP.

I. view ASP again

The first time I learned ASP, I had a great misunderstanding about ASP. At that time, I didn't seem to understand ASP much. I only knew some basic concepts of ASP. It mainly consisted of seven objects, each object has its own attributes, methods, sets, or events. The following table describes the names and functions of the seven objects.

Response

This object can be used to output the browser information from the server to the client.

Request

This object can be used to obtain client browser information to the server.

Asperror

Iis5.0 or a later version is supported and used by programmers to modify program errors.

Server

This object provides the most basic attributes and methods on the server side.

Application

Record common variables on different browsers

Session

Record common variables on all browsers

Objectcontext

Used to link ASP and Microsoft Transaction Server

Now, when I study ASP again, I find that ASP does not need to be so tedious to explain. In other words, ASP is a server-side command environment and can be seen as a middleware, this middleware transfers Web requests to an interpreter. In this interpreter, all ASP scripts are analyzed and executed, in this case, you can create a new COM object in the middleware, operate and call the attributes and methods of the object, and then complete more work through these COM components.

ASP contains three parts: "scripting language", "embedded HTML", and "COM component call, the three parts can be understood through the following two images.


Ii. Simple ASP script

ASP programs must be enclosed by the <% and %> symbols. This is also the most basic ASP syntax. save the ASP extension (if yes. net needs to be saved. aspx)

<% Language = VBScript %> <HTML> 

The system time will be obtained after running.

Simply put, ASP is just a programming environment. It provides a mechanism to compile and run application code. The HTML code, div + CSS are some of the combined technologies, they work together to achieve the effect of the web 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.