) ASP. NET script language Introduction

Source: Internet
Author: User
Tags configuration settings wysiwyg html editor
Introduction to http://www.72e.net/support/docread-99.aspxAsp.Net scripting language
Views: 117017 Update Time:

 

 

 

1. What isASP.net

ASP.net is a general language-based program architecture that can be used by a Web server to build powerful Web applications. ASP. NETIt is not just the next version of Active Server Page (ASP). It also provides a unified Web development model, including various services required by developers to generate enterprise-level Web applications. ASP. NET syntax is highly compatible with ASP. It also provides a new programming model and structure to generate applications with better scalability and stability, and provide better security protection. You can gradually add ASP. NET functions to existing ASP applications to enhance the functions of ASP applications at any time.

ASP. NET is a compiled, based on.. NET environment.. NET compatible language (including Visual Basic. NET, C #, and JScript. NET .) create an application. In addition, any ASP. NET application can use the entire. NET Framework. Developers can easily obtain the advantages of these technologies, including the hosted public Language Runtime Library environment, type security, inheritance, and so on.

ASP. NET can work seamlessly with the wysiwyg html editor and other programming tools, including Microsoft Visual Studio. NET. This not only makes Web development more convenient, but also provides all the advantages that these tools must provide, including the GUI that developers can drag and drop server controls to Web pages and fully integrated debugging support.

II.Asp. NetOfExcellent features: Asp.netCompared with other programming languages, it has many outstanding features:

  1. Significant improvement in execution efficiency:ASP.net runs a general-language-based program on the server. Unlike the previous ASP instant interpreter program, the program is compiled at the first run of the server. This execution effect is certainly much better than one interpretation.
  2. World-class tool support: The ASP.net architecture can be developed using Microsoft (R)'s latest product Visual Studio.net development environment. WYSIWYG (What You See Is What You Get) editing. These are only a small part of the support for powerful ASP.net software.
  3. Robustness and adaptability: Because ASP.net is a program compiled and run based on a common language, it is powerful and adaptive, it can be run on almost all platforms of Web application software developers (I only know that it can only be used on Windows 2000 Server ). The basic library, messaging mechanism, and data interface processing of common languages can be seamlessly integrated into ASP.net Web applications. ASP.net is also language-independent language independent. Therefore, you can select a language that best suits you to write your program, or write your program in many languages, currently, C # (a combination of C ++ and Java), VB, and Jscript are supported. In the future, the ability to work collaboratively in multiple programming languages will protect your current COM +-based programs and be fully transplanted to ASP.net.
  4. Simplicity and easy to learn:ASP.net is very simple to run some common tasks such as form submission client authentication, distribution system and website configuration. For example, the ASP.net page architecture allows you to create your own user interface, so that it is different from the common VB-Like interface. In addition, the simplified development of common languages makes it easy to combine code into software, just like assembling a computer.
  5. Efficient manageability: ASP.net uses a character-based and hierarchical configuration system to simplify the configuration of your server environment and applications. Because the configuration information is saved in simple text, new settings may not need to be enabled by the local administrator tool. This philosophical concept, called "Zero Local Administration", makes application-based development of Asp.net more specific and fast. To install an ASP.net application on a server system, you only need to simply copy some required files without restarting the system. Everything is so simple.
  6. Multi-processor Environment Reliability: ASP.net has been deliberately designed as a multi-processor development tool. It uses special seamless connection technology in a multi-processor environment, which will greatly improve the running speed. Even if your current ASP.net application is developed for a processor, in the future, the performance of your multi-processor can be improved without any changes, but the current ASP does not.
  7. Customization and scalability: In ASP.net design, website developers can define their own "plug-in" modules in their own code. This is different from the original inclusion relationship. ASP.net can add components defined by itself. The development of website programs has never been so simple.
  8. Security: Based on the Windows Authentication Technology and the configuration of each application, you can ensure that your original application is absolutely safe.

III.Asp. Net Web application development instructions

When creating an ASP. NET application, developers can use Web forms or XML Web services, or combine them in any way they think appropriate. Each function can be supported in the same structure, so that you can use the authentication scheme, cache frequently used data, or customize application configurations. Here, only a few possibilities are listed.

  • Web forms can generate forms-based Web pages with powerful functions. When generating these pages, you can use the ASP. NET Server Control to create public UI elements and program them to execute common tasks. These controls allow you to generate Web forms with reusable built-in or custom components to simplify Page code. For more information, see the Web forms page. For information about how to develop ASP. NET Server controls, see Develop ASP. NET Server controls.
  • XML Web services provides a way to remotely access the server. With XML Web services, enterprises can publish data or business logic programming interfaces, while client and server applications can obtain and operate these programming interfaces. XML Web services can exchange data in the client-server or server-server solution by using standards such as HTTP and XML message transmission across the firewall. XML Web services do not rely on specific component technologies or object call conventions. Therefore, XML Web services can be accessed for programs written, used, and run on any operating system in any language. For more information, see XML Web services created using ASP. NET and XML Web services clients.

Each model in these models can take full advantage of all ASP. NET functions, as well as the powerful functions of the. NET Framework and. NET Framework Public Language Runtime libraries. These functions and their usage methods are described as follows:

  • If you have ASP development skills, the new ASP. NET programming model will be very familiar to you. However, compared with ASP, the ASP. NET object model has significant changes. It is more structured and object-oriented. However, this also means that ASP. NET is not fully backward compatible. Almost all existing ASP pages must be modified to run in ASP. NET. In addition, some major changes to Visual Basic. NET also mean that existing ASP pages written in Visual Basic Scripting will not be directly ported to ASP. NET. However, in most cases, only a few lines of code need to be modified. For more information, see migrate ASP pages to ASP. NET.
  • Accessing databases from ASP. NET applications is a common technology that displays data to Web site visitors. ASP. NET makes it easier to access databases for this purpose than ever before. It also enables you to manage databases from your code. For more information, see access data through ASP. NET.
  • ASP. NET provides a simple model that enables Web developers to write logic that runs at the application level. Developers can write this code in the Global. asax text file or in the compiled class deployed as an assembly. This logic can include application-level events, but developers can easily extend this model to meet the needs of their Web applications. For more information, see ASP. NET applications.
  • ASP. NET provides easy-to-use applications and session Status functions. They are familiar to ASP developers and are easy to be compatible with all other. NET Framework APIs. For more information, see ASP. NET status management.
  • ASP. NET provides IHttpHandler and IHttpModule interfaces for senior developers who need to use APIs that are as powerful as the ISAPI programming interfaces (included with previous ASP versions. ImplementationIHttpHandlerInterfaces provide you with a way to interact with low-level requests and response services of IIS Web servers, and provide functions similar to ISAPI extensions, but the programming model is relatively simple. ImplementationIHttpModuleInterface allows you to include custom events that participate in every request sent to the application. For more information, see HTTP Runtime Library support.
  • ASP. NET utilizes the performance enhancement function in the. NET Framework and Common Language Runtime libraries. In addition, it can provide significant performance improvements compared with ASP and other Web development platforms. All ASP. NET code is compiled, rather than interpreted. This allows early binding, strong type processing, and real-time (JIT) Compilation of the local code. Here we only list several advantages. ASP. NET can also be easily decomposed, that is, developers can remove modules that are irrelevant to the applications they develop (for example, session modules ). ASP. NET also provides a wide range of cache services (including built-in services and cache APIs ). ASP. NET also provides performance counters that developers and system administrators can monitor to test new applications and collect metrics for existing applications. For more information, see ASP. NET cache and ASP. NET optimization.
  • Compiling custom debugging statements on the Web page is very helpful for troubleshooting errors in application code. However, if you do not remove them, it will be troublesome. The problem is that it takes a lot of work to remove debugging statements from the page when the application is ready to be transplanted to the production server. ASP. NET provides the TraceContext class, which is used to compile custom debugging statements on the page during development. They appear only when you have enabled tracing for the page or the entire application. Enable tracing to append request details to the page, or to the custom tracking viewer stored in the application root directory (if so specified ). For more information, see ASP. NET tracking.
  • . NET Framework and ASP. NET provide default authorization and authentication solutions for Web applications. You can easily remove, add, or replace these solutions, depending on the needs of the application. For more information, see protect ASP. NET Web applications.
  • ASP. NET configuration settings are stored in XML-based files, which are readable and writable. Each application can have different configuration files and can expand the configuration scheme to meet your requirements. For more information, see ASP. NET configuration.
  • When the application is installed on the same computer but different. NET Framework versions are used, the application runs in parallel. To learn how to use different ASP. NET versions for different applications on the server, see the parallel (Side-by-Side) support in ASP. NET.
  • IIS 6.0 uses a new process model called the auxiliary process isolation mode, which is different from the process model used in earlier versions of IIS. When running on Windows Server 2003, ASP. NET uses this process model by default. For information about how to migrate ASP. NET Process model settings to the secondary process Isolation Mode, see IIS 6.0 Application Isolation Mode.

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.