HTML file can become dynamic interface, often become suffixes are:
Display interface developed using the .NET .aspx suffix
Using java development of display interface suffix is .jsp
Display interface developed using php suffix is .php
This paper describes the use of .net development site
Right-click website Select Add
Select Add web form
A name, it is recommended to see the name of know these views
Divided into two parts, a front end of a show is .aspx display control source .cs
The main part of the front end
Language Language,
AutoEventWireup run automatically at startup files
CodeFile encoded file, background file
inherits literally understood as: inheritance represents the namespace of this document
runat = "server" is equivalent to the server controls,
directly controls id.value get value when you run gets its value on the server side, the code behind; do not like Java, passed to the server by way of submission
So long as the corresponding portion of the HTML into which it
Background .cs file
partial partial, because the file name C # file may be inconsistent with the class name, then a class may be split into two, it would have partial use in various parts of the same type, then still at compile time local type will be merged into respective portions of a complete class.
Inside the method parameters:
object sender (sender: sender): indicates that the control object triggers the event, SENDER parameter for delivery of the event source object reference pointing
EventArgs e: (EventArgs: event parameter): represents a base class event data, that is simple to understand record additional information about the event passed over. Additional information about the event location is generally used to transfer the user clicks on the keyboard by pressing the keys, etc.