1. Web: Resources that can be browsed using a browser
2. Web site: Web site collection, using IIS to build Web sites
3.IP: Each machine has a unique IP address (IP on the network card, each computer can have multiple network cards, a network card can have more than one IP)
4.Port: One IP has 65,536 ports, default 80 port, not blocked by firewall
5. Domain Name: IP nickname, from domain name to IP called Domain name resolution
6. Static Web pages: Content does not vary by person, and dynamic web content varies by person
7.WEB application: b/S
Include: website (public) and enterprise application System (internal system that requires login)
8.WEB Application Rationale: Request-Process-response
9.http: Hypertext Transfer Protocol, which specifies the interaction between client and server
HTTP stateless: The server does not remember the client state in order to increase the number of concurrent requests and prevent high concurrency.
HTTP status Code: Server returns response status
------------------------------------------------------------------------------------------------------
A. Hello Example Supplement
1. Manipulating files in the Web
Virtual path:
Relative to the website
~: Represents the application root directory
MapPath: Represents converting a virtual path to a physical path
String str = System.IO.File.ReadAllText (context. Server.MapPath ("~/template.tmp"));
Context. Response.Write (str)//Return to Client
2.hidden:
Hide fields, save hidden data, user cannot manipulate, more secure than non-null validation of text box
<input type= "hidden" value= "true" name= "PostBack"/>
3. Form submission:
The Input,select,textarea element in the form with the name attribute, value is committed.
Exception: Disabled (read-only/unavailable) Form elements are not submitted, radio and checkboxes in the Tick are submitted
Two.
1.ASP. NET is the framework of the development of B/s program provided by Microsoft
Divided into two parts: Webform/mvc (Strengths)
WebForm (Web Form): In order to let programmers develop winform like the development of B/s program
WebForm is divided into three files:
. aspx template files
The. Aspx.cs handles the request type, the parent class page of all forms, implements the IHttpHandler, is able to handle the request
The. Aspx.designer.cs code is automatically generated
aspx is a suffix type that is already defined, just like ASHX/ABC
2. Server-side controls
Control Categories:
Client control: Input Select textarea
Server-side control: is the encapsulation of the client control runat= "Servers"
Benefits of server-side controls:
A. Accessing the control on the server is convenient for this.
B. Control value auto-hold
3. Event elements:
Event Publisher, event Subscriber, Event Response (method), event registration
button Click event: Publisher is button, event Subscriber is form
Button1_Click ()
Server-side buttons have two click events: Client-side events before, service-end events
026.ASP. NET case complement and WebForm