Detuction ASP.NET (1) Green Apple Studio (Compilation) 01-5-16 02:46:09
Summary
The ASP is now rebuilt from beginning to foot, and the result is ASP.NET. It is not just ASP 4.0, which is a new framework for web development, which contains many new features. ASP.NET provides easier to write, more clear code, which is easy to reuse and sharing; ASP.NET uses compiled languages, thereby promoting performance and scalability; ASP.NET uses web forms to develop more Intuitive, using the object-oriented technology to promote the reuse of components. In addition, ASP.NET also includes page events, web controls, buffer technology, and server controls and improvements to data bundle. For the library for ASP.NET, and allow the programmer to use customer commercial functions in the Microsoft.Net framework to provide more new development opportunities for programmers.
Advantages of ASP.NET
ASP.NET makes the code more clean. In the existing ASP application, no matter how you write them, the structure is always full of short code. The code of ASP.NET is not only easier to write, but also more clean, more easy to read than the ASP code. At the same time, the structure of the ASP.NET code improves its reuse and sharing.
ASP.NET improves configuration, scalability, security, and reliability. For simple ASP applications, the configuration is actually nothing, but it will encounter problems when you transplant it into an N layer structure using the component. DLL traps (component registration, version, locked DLL, etc.) will appear when you configure and maintain these applications. The component registration and DLL lock are canceled in ASP.NET, which fully uses the XML configuration file to solve this problem. This way you only need to perform a copy of the file to configure a web application.
ASP.NET provides better support for a variety of browsers. For ASP developers, browser compatibility issues seem to be an eternal issue. You or write code for a low-level browser, such as HTML 3.2, or restrict the page browsing range. The introduction of Wireless Application Protocol WAP devices will deepen this problem. This section of this article describes how ASP.NET solves browser compatibility issues.
ASP.NET creates a new type of web application. Current web applications are usually the same mode: a set of linear applications, then implant one of them. ASP.NET allows developers to break this single mode, create more dynamic and more scalable applications, which can better meet the company's business needs and provide a richer development environment.
Here you may think, although these goals are very expensive, they will make the application be difficult. Then, the opposite is true, it is necessary to develop more asp.net!
Let's take a fine to taste the powerful features of ASP.NET, including:
● Support for compiling languages
● Web form
● Follow the page event of the page object
● WEB control
● Web Services
● Buffer technology
● Debugging and tracking
● Code and content isolation
● Universal library of namespace
● Configuration
Use the compiled language
Existing ASP versions are based on scripting languages such as VBScript and JScript. There is no fault in the scripting language itself, but they have two major defects: they are explained, and the classification is not strict. ASP.NET does not completely abandon the concept of scripting languages, which introduces support for full-compiled languages so that you can write your own server-side code with Visual Basic, for example:
A large advantage of Visual Basic is its support for strict classified variables, so the following code is established in ASP.NET: Dim Firstname As String
In addition to Visual Basic and C , you can write server-side code using the latest Microsoft language C #. C # puts the un practical parts in C , it is more likely to understand. With ASP.NET, compile action occurs when the page is loaded in the first time. Even if the code is a scripting language, it will also be compiled before execution, so the performance of the JScript code page will be improved. In fact, this is a basic new feature of the .NET framework. The previous version of the language compiler treats the data type and objects, which means that the only one can develop in cross-language is to create a COM object. The General Language Running Time Environment in the Microsoft .NET framework CLR allows any code that has been compiled with the general runtime support, which is the new Visual Basic and C # compiler to do: Create can run time The code is managed.
The biggest advantage is that the real cross-language development is possible. With a generic runtime environment CLR, you can create objects with C # and expand them through inheritance in Visual Basic. The current Visual Basic .NET supports inheritance, so you can write components in C #, then set them into subset in Visual Basic. Although Visual Basic, C # and scripting languages are a language that is supported in the frame structure, but will be supported later, such as SmallTalk, Eiffel, Pascal, etc., will also be supported. One advantage of the Microsoft .NET framework is that the extension is very easy, so it is only necessary to support the output of the running time environment using a new language.