Asp. NET Summary

Source: Internet
Author: User
Tags access properties md5 encryption servervariables



Asp. NET video although finished, but the video in the teacher said the link between each chapter is not very strong, so after class himself through the drawing of mind map to the knowledge in series, oneself also just according to notes and understanding finishing a bit, there are missing places do not want you to add.

Official explanation (from Baidu Encyclopedia):

ASP is part of the. NET framework and is a Microsoft Corporation is a technique that enables embedded web pages to be Script server-side scripting technology that can be executed by an Internet server, which can then be dynamically created on the Web server when documents are requested through HTTP. Refers to the Active Server Pages (dynamic Servers page, which runs on the IIS (Internet Information Server) service and is a program in a Windows-developed Web server.

My understanding:

Asp. NET is not a language, it is a powerful dynamic web-creating technology.

Unfold according to mind map:

1. Overview

Asp. NET's official interpretation and personal understanding.


2. Common objects

1) Page: The way to the page itself, the entire page during the execution of the object can be used, equivalent to our learning C/s phase of the form.

2) Request: Interact with the client, collect the client's form, cookies, hyperlinks, or collect server-side environment variables to store the request information.

Five collections of the request object:

QueryString: Used to obtain the query string information appended to the URL by the client, for example: str=request.querystring["strUserName"];

Form: Used to obtain the information that the client entered in the form form, for example: str=request.form["strUserName"];

Cookies: Cookies used to obtain the client's information, for example: str=request.cookeis["strUserName";

ServerVariables: Used to obtain the header information from the HTTP request message sent by the client and the server-side environment variable information, for example: str=request.servervariables["REMOTE_ADDR"; Returns the client IP address.

ClientCertificate: Used to obtain authentication information for the client, for example: str=request.clientcertificate["ValidForm", or a valid start date for sites that require secure authentication.

3) Response: Store output information, common method write can output the text content, equivalent to the Print method in VB.

4) State Save object:

Session: Store information, general User user log on the user state information, when accessing other pages or reopen the page to determine if there is a session, if not NULL indicates that the user is logged in, can continue to access, or to the login page.

Cookies: Used to record user information for the next logon without having to repeat the writing.

Application: Used to store and retrieve information that can be shared between users.

5) Server: Access properties and methods for the service.


3. Controls

1) The HTML control differs from the Web control in that the HTML control differs from the Web control's approach to event handling, for HTML controls that are processed by the browser when an event is raised. However, for Web controls, the browser can only generate events that cannot be processed, and the client sends information to the server that is processed by the server.

2) Validation Control:

RequiredFieldValidator: Non-null validation, used to check for input values.
CompareValidator: Compare validation, compare two inputs by setting.
RangeValidator: Scope validation, whether the input is in the specified range.
RegularExpressionValidator: Regular expression validation.
CustomValidator: A custom validation control.
ValidationSummary: Validation summary, summarizing validation results.

3) data-bound controls:

GridView: Used to display the value of a data source in a table, which specifies the table's display style, each column represents a field, and each row represents a record. The control is fully functional and can be used to sort, select, update, delete, and page out data in addition to binding data sources.

DataList: Compared to the GridView is slightly more complex, requires the user to define the display style of the data, and the GridView each row displays a different record, DataList each row can display more than one record.

Repeater: Usage is similar to DataList, except that it cannot display multiple records on one line, but it can flexibly control the display style of the data by defining the template.

4) User controls and custom controls

Neither of these are system controls, but they are all created by the user according to their own usage needs. User controls are typically used only in one project and cannot be added to the toolbox, while custom controls can be added to the toolbox for multiple items to be used more than once. User controls are easy to write, and custom control authoring is cumbersome, but custom controls are highly reusable, effectively resolving problems that are often used and that existing controls cannot be completed.


4.ADO. The similarities and differences between NET and ADO

Same point:

1) are database programming interfaces.

2) can operate a variety of databases.

3) all support ODBC.

Different points:

1) The basic technology is different.

2) The intrinsic data types are different.

3) Meta data and XML support are different.

5. Configuration Files

1) Two types of configuration files:

Machin.config, also known as the server configuration file, provides the default configuration of the entire machine, and changes to the file will affect the local site.

Web. config is typically used at the application-level configuration file, and its modifications do not affect other sites or subdirectories under the site.

2) encryption and decryption

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

3) authentication

Windows authentication, high security, can only be used on Windows platforms, and the domain name must have an account.

Passport authentication, which connects the Windows Live ID service for authentication.

Forms authentication, which provides validation by the form data, the developer customizes the validation logic, and writes the validation credentials to the form validation tool.

4) Authorization

File authorization: Authorizes access by checking the file's access control list.

URL authorization: The URL that is set by the developer to grant permissions.

5) Custom Error

Mode:on indicates that custom errors are enabled, and off means that custom errors are disabled.

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

6. Installation and Deployment

New Installation and deployment projects, with the C/s stage is similar, not to repeat.


Asp. NET learning makes me realize that it is not so easy to make a good website, and the accumulation of these bits of knowledge is our most valuable asset. Do not accumulate Kuibu not even thousands of miles, do not accumulate small flow into jianghai, the accumulation of bits and pieces can produce huge changes.

Through only the knowledge there is a general understanding, the above content is based on the video teacher said through the mind map in series, during the period also looked up a lot of information, there are omissions and deficiencies also please teachers and students to criticize correct.

 

Asp. NET Summary

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.