<asp.net4 from getting started to mastering > Learning Note 1

Source: Internet
Author: User

It's been a long time since I've been writing, and today I've been working on the learning notes about ASP. 4, reminding myself and welcoming comments.

The overview is divided into 6 large parts, follow-up articles, will be based on each part of the collation, the reading notes are just finishing the key points, for the wordy content omitted.

The first part, the basic knowledge part

I think this part of the book as an introductory part of the more in-depth and clear part, for the net, his essence is web development, whether it is a Web form or MVC, before the web development, first need to understand, Why the emergence of ASP. NET, in fact, in the early days, it should be said that HTML and HTTP world, in the computer world, to the network World Development, the first appearance of the construction station is the so-called Three Musketeers, Dreamwwaver, ... (after two forgotten), and frontpage2000, these tools, one of the basic features of these tools is to provide static HTML page design, and then put in a folder, another browser to get, and at that time, there is no JavaScript big line of its way, There is also a complex Web server concept such as IIS, which is basically a CGI configuration. With the development, the need for dynamic Web pages, such as BBS, in fact, so-called Dynamic Web pages, more accurate, I personally think it should be the need for interactive Web pages, that is, the background needs to deal with the relevant business logic, and then the results presented to the customer. In other words, each customer is requesting the same web, but the results are different. (This sentence, you need to understand, I have understood for a long time!) )。

Chapter One Web Application basics:

So HTML is essentially the page description format, the purpose is to provide a browser for page parsing, or can be understood as the page format output. Its version development is also ongoing, the current version is HTML4.0.1, the latest is the HTML5.0, the purpose of these descriptions is to standardize and generic, so the advent of XHTML, and so on, the main purpose is to standardize the HTML.

HTTP, an application-layer protocol, is designed to complete the transmission, and HTTP is born to solve the problem of the network, then the most important feature of HTTP is stateless transmission, and provides the transmission of HTML as text.

Web application Orchestration: The user sends an HTTP GET request through the browser, and the request arrives at IIS via the HTTP request protocol, then IIS begins a pipeline and finally forms a response, This response is the HTTP response, this response inside with HTML display text, then the browser receives, will do parsing, and then show it!

HTML in order to achieve with the service side of the angle, in addition to the performance of the UI label, but also added the <FORM> tag, this tag is to submit the server, the service side to obtain data.

Chapter II ASP. NET Application Foundation

This section briefly explains the program appearance of ASP, an ordinary program is an HTML file, and an ASP program is an ASP file, an aps.net program is aspx, in addition, HTML is developed in HTML language, the development model used by ASP is JavaScript and html,aspx. The development language is the C # and HTML language.

Because it involves the development of more than one language, this causes the problem of mixed mode, one is embedded mode, that is, in HTML using <%%> and <%=%> mode to write to the page, the other is the script mode, that is <script runat= "Server" > </script> There is also a code separation mode, one asp.net1.1 mode is the inheritance mode, the other is the asp.net2.0 mode for the partial class mode.

In addition, ASP. NET pipeline is also very important, that is, when IIS receives the HTTP request after the class library process, it is more important to remember HttpModule, and HttpHandler.

Chapter three page rendering model

In an object-oriented approach to ASP, all pages and control are encapsulated and inherited so that an ASPX page corresponds to a class in IIS that is a tree-like inheritance relationship starting with the Page object. The page contains Control,control and control, and each of the controls, when displayed, invokes its own render method to describe itself as the appropriate HTML tag.

The previous ASP used active controls to buy the UI, but it lacked commonality and was eventually replaced by the HTML pattern.

Fourth. Custom Controls

The so-called custom control is the ASP control that you write yourself, and then render it yourself as a specific HTML tag. This control needs to inherit WebControl, diarrhea rendercontent function can

Fifth Chapter Composite Control

The so-called composite control is a control that includes the original control, usually inherited from the UserControl

The sixth chapter common control Introduction

1. Validation control, client authentication and server-side validation are required, client validation usually Microsoft will help create JavaScript code

A 2.Image control that is used to display the picture

3.treeview control, which is used to implement navigation functions

4.multiview control, which is similar to the Tabview window

Summarize

The basic part of the book, the individual tasks have several key parts, some omitted, or said not clear.

1, about the mode of postback

2, the basic function of ViewState

3. HTML client controls, HTML server-side controls, the difference between ASP service controls

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.