ASP. NET summary,

Source: Internet
Author: User
Tags servervariables

ASP. NET summary,
Zookeeper

ASP. although the NET video has been watched, the connection between each chapter in the video is not very strong, so I will draw a mind map to connect the knowledge after class, I just sorted it out based on my notes and understanding. I hope you will not add any omissions.

Official explanation (from Baidu encyclopedia ):

ASP. NET is. NET FrameWork is a Microsoft technology. It is a server-side scripting technology that allows scripts embedded in web pages to be executed by Internet servers, it can dynamically create HTTP request documents on the Web server. It refers to the Active Server Pages (Dynamic Server Pages) running on the IIS (Internet Information Server) service. It is a program on a Web Server developed by Windows.

My understanding:

ASP. NET is not a language. It is a powerful dynamic web creation technology.

Expand Based on the Mind Map:

 

1. Overview

ASP. NET official explanation and personal understanding.


2. Common objects 1) Page:

Point to the page itself. This object can be used throughout the page execution period, which is equivalent to the form in the C/S stage.

2) Request:

Interacts with the client to collect form, cookies, hyperlinks, or environment variables of the client, and store request information.

Five sets of Request objects:

QueryString: used to obtain the query string information appended to the URL of the client, for example, str = Request. QueryString ["strUserName"];

Form: used to obtain information entered by the client in the Form, for example, str = Request. Form ["strUserName"];

Cookies: used to obtain the Cookie information of the client, for example, str = Request. Cookeis ["strUserName"];

ServerVariables: used to obtain the header information in the HTTP Request information sent by the client and the server environment variable information, such as str = Request. ServerVariables ["REMOTE_ADDR"]; return the Client IP address.

ClientCertificate: used to obtain the authentication information of the client, such as str = Request. ClientCertificate ["VALIDFORM"]. For websites requiring security verification, the effective start date is returned.

3) Response:

Stores the output information. The common method is Write, which can output the prepared text content, which is equivalent to the print method in VB.

4) status save object:

Session: stores Session information. Generally, user status information is stored when a user logs on. When another page is accessed or the page is re-opened, the user determines whether the Session exists, if it is not null, it indicates that the user has logged on and can continue to access it. Otherwise, the logon page is switched.

Cookie: used to record user information, so that you do not have to repeat the next login.

Application: used to store and obtain information that can be shared by users.

5) Server:

Access Service Attributes and methods.


3. Control 1) differences between HTML controls and web controls:

HTML controls and web controls have different processing methods for events. For HTML controls, when an event is triggered, the browser will handle the event. However, for web controls, the browser can only generate events and cannot process them. The client sends information to the server, which is processed by the server.

2) verification control:

RequiredFieldValidator: A non-empty verification that is used to check whether an input value exists.
CompareValidator: compare two input values according to settings.
RangeValidator: range verification. Whether the input is in the specified range.
RegularExpressionValidator: Regular Expression verification.
CustomValidator: Custom verification control.
ValidationSummary: verification summary, which summarizes the verification results.

3) data binding control:

GridView: used to display data source values in a table. It specifies the display style of the table. Each column represents a field and each row represents a record. This control provides complete functions, including sorting, selecting, updating, deleting, and paging data in addition to binding data sources.

DataList: it is a little more complex than the GridView. You need to define the display style of the data by yourself. Unlike the display style of one record on each row in the GridView, DataList can display multiple records on each row.

Repeater: its usage is similar to that of DataList, but it cannot display multiple records in one row. However, it can flexibly control the display style of data by defining a template.

4) User Controls and Custom Controls

Both of them are not system controls. They are created by the user based on their own usage requirements. User Controls can be used only for one project and cannot be added to the toolbox. custom controls can be added to the toolbox for multiple projects. User-Defined controls are easy to write and are cumbersome to write. However, custom controls are highly reusable and can effectively solve problems that are frequently used and cannot be completed by existing controls.


4. Similarities and Differences between ADO. NET and ADO:

1) database programming interfaces.

2) You can operate on multiple databases.

(3) Both support ODBC.

Differences:

1) the basic technology is different.

2) Internal data types are different.

3) metadata and XML support are different.

5. Configuration File 1) Two configuration files:

Machin. config, also known as the server configuration file, provides the default configuration for the entire machine. modifications to this file will affect the local site.

Web. config is generally used for application-level configuration files. modifications to it do not affect other sites, but can also be used for sub-directories under sites.

2) encryption and decryption

The most common MD5 encryption algorithm can avoid the trouble caused by data leakage to some extent.

3) Authentication

Windows authentication is highly secure and can only be used on Windows platforms, and the domain name must have an account.

Passport authentication, connect to the Windows Live ID service for authentication.

Forms authentication is provided by form data for verification. developers Define the authentication logic and write the verification credential to the form verification tool.

4) Authorization

File authorization: the access control table of the check file is used to grant access permissions.

URL Authorization: the permission is granted by the URL set by the developer.

5) custom errors

Mode: on indicates that a custom error is enabled, and off indicates that a custom error is disabled.

RemoteOnly: only remote clients are displayed, and local debugging displays normal errors.

6. installation and deployment

New installation and deployment projects are similar to those in the C/S stage.


Learning ASP. NET makes me realize that it is not so easy to build a good website. The accumulation of these pieces of knowledge is our most valuable fortune. The accumulation of dribs and pieces can bring about huge changes without accumulating small streams.

We can only have a general understanding of the knowledge. The above content is linked up based on the mind map given by the teacher in the video. During this period, we also checked a lot of information, teachers and students are also asked to criticize and correct any omissions or deficiencies.


Experience of aspnet

I personally think the advantage is
1. Interface and logic Separation
2. Easy to write and debug, and easy to use in MS.

View on the Internet

Compared with previous Web development models, ASP. NET provides several important advantages:

Enhanced performance. ASP. NET is the compiled public Language Runtime library code on the server. Unlike the predecessors, ASP. NET can use early binding, real-time compilation, local optimization, and out-of-box cache services. This is equivalent to significantly improving the performance before writing code lines.

World-class tool support. The ASP. NET framework complements the integrated development environment of Visual Studio.

A large number of toolbox and designer in the environment. WYSIWYG editing, drag-and-drop server controls, and automatic deployment are only a few of the functions provided by this powerful tool.

Power and flexibility. Because ASP. NET is based on a Common Language Runtime Library, Web application developers can use the power and flexibility of the entire platform .. . NET Framework class library, message processing, and data access solutions can be seamlessly accessed from the Web. ASP. NET is also independent of language, so you can select the language that best suits your application, or split your application across multiple languages. In addition, the interaction of Public Language Runtime libraries ensures that existing investment in COM-based development is retained when the database is migrated to ASP. NET.

Simplicity. ASP. NET makes it easy to execute common tasks, from simple form submission and client authentication to deployment and site configuration. For example, the ASP. NET page framework allows you to generate a user interface that separates application logic from the representation code, and process events in a simple form processing model similar to Visual Basic. In addition, the Common Language Runtime simplifies development by using managed code services (such as automatic reference counting and garbage collection.

Manageability. ASP. NET uses a text-based hierarchical Configuration System, which simplifies the application of settings to server environments and Web applications. Because configuration information is stored in plain text, you can apply new settings without the help of local management tools. This "Zero local management" philosophy also extends to the deployment of ASP. NET Framework applications. You only need to copy the necessary files to the server to deploy the ASP. NET Framework application to the server. You do not need to restart the server, even when you deploy or replace the Running code.

Scalability and availability. ASP. NET has been designed with Scalability considerations and added a feature specifically designed to improve performance in a clustered and multi-processor environment. In addition, the process is affected by ASP. NET Runtime Library is closely monitored and managed, so that when the process behavior is abnormal (leakage, deadlock), you can create a new process to help keep the application always available for processing requests.

Customization and scalability. ASP. NET comes with a well-designed structure that allows developers to "insert" code at the appropriate level. In fact, you can use your own custom components to expand or replace any sub-components of the ASP. NET Runtime Library. It has never been easier to implement custom authentication or status services.

Security. With built-in Windows Authentication and configuration based on each application, you can ensure that the application is secure.

Aspnet experiences urgently needed

Learning ASP. NET, I have transformed from VFP and ASP.
The ASP. net I learned follows the path asp.net (c #) + Sql2000.
Before learning VFP, I had a deep understanding of the database and had a rough understanding and experience of the CS structure project. Now learning ASP. NET is much faster and easier to use than others.
In this regard, my focus is on bsstructured website projects. I don't like CS structured programs very much, because I think the CS structured programs should be visible to others, unless others know and own your software or buy your CS program, no one will know your program.
However, bsstructured website programs are different. You can publish your website to the Internet, this allows many unknown and unfamiliar users to visit your website, so that they will know your website program, this fully reflects the value of a program.
The difference between the two lies in that CS-structured programs must be installed on any client before they can be used; while bsstructured programs only need to be configured with servers, connected computers, you can open your website anytime, anywhere. This not only saves the trouble of installation, but also effectively solves the restrictions of time and space and breaks the limitations of resources, to fully reflect the value of website programs.
I used to learn ASP through dw. At that time, I felt very troublesome, especially when html Tag files and ASP code are stored in the same file, this results in a lot of redundant code, which is difficult to modify, that is, it is not easy to maintain or modify. It looks like my eyes have been spent.
Fortunately, learning ASP. NET is in line with your own personal thinking. In the course of learning, you only need to learn basic operations and syntaxes. There are no other obstacles.
After learning ASP. NET's code separation mode and no-brush new technology, I realized the real structure of the website, and finally I got a further understanding of the bsstructured website program.
At the same time, the understanding of large SQL databases has changed.

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.