From static HTML to dynamic ASP to powerful ASP. net1.0 --> Asp. net2.0 --> Asp. net3.0
No matter what HTML is.
ASP stands for "Active Server Page ". ASP is a CGI script developed by Microsoft.ProgramIt can interact with databases and other programs, and is a simple and convenient programming tool. The format of ASP Webpage files is. asp, which is commonly used in various dynamic websites. ASP is a server-side scripting environment that can be used to create and run dynamic web pages or web applications. ASP Web pages can contain HTML tags, common text, script commands, and COM components. Using ASP, you can add interactive content (such as online forms) to a webpage, or create a web application that uses an HTML webpage as the user interface. Compared with HTML, ASP Web pages have the following features:
(1) ASP can be used to break through some functional limitations of static Web pages and achieve dynamic web page technology;
(2) ASP files are contained in HTMLCodeThe files are easy to modify and test;
(3) The ASP interpreter on the server will create an ASP program on the server side and send the result to the client browser in HTML format, therefore, you can use various browsers to browse the Web pages produced by ASP;
(4) ASP provides some built-in objects. Using these objects can make the server script more powerful. For example, you can obtain information submitted by users through HTML forms from a Web browser, process the information in the script, and then send the information to the Web browser;
(5) ASP can use server ActiveX components to execute various tasks, such as accessing the database, discovering the email or accessing the file system.
(6) because the server returns the result of ASP program execution to the client browser in HTML format, the user will not see the original program code written by ASP, And the ASP program code can be stolen.
Asp.net, the popular ASP + on the Internet, is the latest and most powerful ASP specification and the most important part of microsoft.net framework (Architecture. In addition to retaining all the excellent ASP features (such as ease of use), she also adds many new features. Below, let's take a look at the excellent features defined by the. NET development group Asp.net.
Enhanced Performance (enhanced performance): Asp.net is a general language runtime environment running on the server. Unlike previous interpretations, Asp.net will improve performance through real-time compilation. In addition, Asp.net uses a series of technologies such as advance binding, JIT compilation, local optimization, and cache to improve the application running efficiency.
World-class tool support (powerful development tool support): Although like ASP in the past, as long as the server operating system and server software (. net requires at least Windows 2000 Server and IIS 5.0) support, you can run scripts, and development of Asp.net pages or applications does not necessarily require specialized development tools. However, if you want to quickly and efficiently create business applications, you must master at least one development tool. Asp.net and visual studio.net are well integrated and can be efficiently developed through dedicated Windows and toolboxes.
Power and flexibility (powerful and adaptive): Asp.net is a runtime environment based on a common language. Developers of network applications can benefit from its good adaptability. Class Libraries, messages, and data connections of all common languages can be easily and seamlessly connected to the network. Asp.net is also language-independent, so you can select the development language you need. In addition, the runtime environment of the general language can also ensure your investment in COM component development.
Simplicity (easy to use): Asp.net makes common network development quite convenient. You can easily complete the process from simple form submission and client verification creation to setting and publishing the entire website.
Manageability (manageability): The management of Asp.net is based on the idea of "no local management". With the plain text setting method, you only need to set the corresponding text file to complete a series of site settings. In addition, if you need to publish your website, you do not have to use some special software on the server for configuration, as long as you simply copy the prepared files to the server.
Scalability and availability (recoverability and effectiveness): Asp.net follows the idea of scalability in its design and optimizes applications in a multi-process environment. Processes can be dynamically called and tracked by Asp.net. If a process fails, other processes can run as usual to ensure that your application is not interrupted.
Customizability and extensibility (customization and scalability): Asp.net provides a highly customizable and Reusable Architecture. You can modify the program segments provided by Asp.net at a certain level, you can even rewrite the Asp.net component to achieve the goal of customization based on different needs.
Security: by verifying windows requests and applications, you can ensure that your applications are secure.
After learning about the excellent performance of Asp.net, let's take a look at the Language Environment Based on ASP.net, so that you can know what language basics need to be mastered in learning Asp.net.
Asp.net is mainly based on three languages by default: C #, Visual Basic and JScript. The basic syntax of Visual Basic is similar to the VBScript used by ASP in earlier versions. JScript is already familiar to readers. Only C # (read as: C sharp) is a new language. It is an OOP language specially developed by Microsoft to meet the needs of network distributed computing, the Basic Semantics is similar to the C language, but there are many differences. If you are interested in this, you can refer to the msdn.microsoft.com/netwebsite with the relevant information of the C language. Although C # has the same basic syntax definitions, such as for loops, as C, C # and C are two languages, and we hope readers can differentiate them.
The following is a simple C # language example:
Using system;
Namespace MySpace {
Public class FOO: bar {
Int X;
Public Foo () {x = 4 ;}
Public void add (int x) {This. x + = x ;}
Public int getnum () {return X ;}
}
}
Of course, in addition to the above languages, you can also add corresponding language packs to solve the problem of using Asp.net in other languages.
According to Microsoft introduction, learning Asp.net can be done in the following aspects:
ASP. NET web forms)
ASP. NET Web Services)
ASP. NET web applications (network applications)
Cache services)
Configuration)
Deployment (Release)
Security)
Localization (localization)
Tracing)
Debugging (debugging)
Below, we will briefly introduce the first three aspects.
The Form Model of Asp.net is used to generate dynamic pages based on specific information. To achieve the purpose of easy development, Asp.net modifies and expands the existing form model and proposes some new technologies and ideas.
To improve code reusability, the code of Asp.net is separated from the general script of the page. The code that splits into blocks can be reused like components, thus improving the development efficiency.
Developers can use a clearer program structure to write programs, so they do not have to worry about the maintenance difficulties caused by the inability to read the previously written code.
Asp.net is more suitable for developing WYSIWYG products than ASP, so that you can easily create network applications.
The network services provided by Asp.net are designed to meet the increasing network computing requirements. Different from the current general page, the network page may communicate with related devices and applications through special programs in the future. According to the design principles of Asp.net, Visual Studio developers can compile or directly use the corresponding page program from the network to the client. If devices on the current computer can be compatible with HTTP, XML, SOAP, SDL, and other protocols, they can be conveniently called by network applications.
The network applications provided by Asp.net are further layered. As long as you place the Asp.net program on the server host, you can control the server to call and run these applications, in addition, different applications can ensure their security by splitting memory and sandbox operations. This feature is another step towards distributed network computing.
The three features provided by Asp.net are the essence of Asp.net. Of course, many of the following features are also different from those of ASP. NET. In short, the Asp.net developed by Microsoft is a powerful weapon of the. NET strategy, and it is also the most powerful proof that Microsoft has entered the network distributed computing.
If you want to learn more about Asp.net, you can purchase a preview of Active Server Pages +, which introduces the basic knowledge of Asp.net in detail. If you want to debug your own Asp.net application or page, you can go to www.brinkster.com to apply for a free space to support Asp.net.