ASP + Study Notes 1

Source: Internet
Author: User
Tags garbage collection
It is actually a document in the SDK, but some knowledge points are translated during reading. Because my habit is
Two ballpoint pens can be written on paper. 5555 ~~~
1. Geting Started
. High performance, ASP + compiled into NGWS runtime code, early help, JIT compilation, cache technology
. Development tool support, WYSIWYG editing environment
. Powerful and flexible, based on the NGWS runtime environment, rich support libraries, message mechanisms, data access, and languages
Independent and compatible with the existing COM system
. Simple, deployment and cultivation, separation of presentation layer and logic layer, and automatic garbage collection
. Ease of management: text files are configured to achieve "0 management" and can even overwrite the compiled
.
. Good scalability, high availability, cluster, multi-processor
. Customizable, scalable, and any subclass of existing classes can be used to implement customized user authentication and status services.
. Security, system integration, and application-based security assurance
Language Support. ASP + has three built-in libraries: C #, VB, and JSCRIPT.
Example:
Attribute definition:
Public String name {
Get {
.....
Return ...;
}
Set {
... = Value;
}
}
Event Processing:
Void MyButton_Click (Object sender, EventArgs e)
{
...
}
Styling (that is, forced type conversion, but different from above, see JAVA ):
MyObject obj = (MyObject) Session ["somevalue"];
IMyObject iobj = obj;
Namespace:
Using System;
Main method:
Public static void Main (String [] args)
Note: like java, args in C # does not include the execution file itself.
II. Asp + Web Forms
1). Introduction
ASP + web forms is a programming model used on the server side to dynamically generate WEB pages. It runs based on NGWS
Environment.
. Reuse UI controls to reduce programming workload
. Clear page logic
. Powerful editing tools
ASP + web forms is a file suffixed with. aspx and compiled into a NGWS class. Only one compilation is required.
Method 1: Change the suffix of a common HTML file to. aspx
Method 2: use the <%> code block
However, the above is not a recommendation practice, which is not conducive to the separation of logic and performance.
. ASP + Server controls
The aspx file contains the tag of the runat = server attribute.
The server control generates HTML code at runtime.
The server control automatically maintains the client input, and the program does not need to process the customer input or
(Note that the server does not save the data on the server, but uses a hidden
).
. Process server control events
Yes, note that these events are actually happening on the client, but you don't have to worry about them, just like a VB
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.