Several forms:
ASP.NET response:
FORM works in ASP.NET:
Server controls are actually generated on the server and then send out.
The tag is:
All ASP.NET forms are passed using a POST mode.
ASP.NET form is stateful, and if you have a form, and you have entered the content, its content is reserved; and the HTML form is stateless and cannot be done. (In the actual process, the HTML form can have this function in a short time, just that the password file is clear.)
ASP.NET Server Control:
ASP: Label Control:
To put it bluntly, this fool control is completely separated for program code and HTML code, its role is to pre-compiling and generate texts displayed with some specific locations related to characters. His role is like span or div in HTML, look at its properties.
The first should be Runat, apparently it belongs to the ASP.NET control, which is naturally only runat = "server".
The rest of the properties have the following:
Backcolor, Forecolor, Height, ID, text, visible, width, is very well understood, don't say more.
ASP: DROPDOWNLIST control
First look at its normal use.
We know that it is the same as the SELECT-OPTION tag function in HTML, and the difference is that it runs on the server, and generates an HTML tag after compiling.
ASP: ListBox control
Normal use:
Where selectMode = "multiple" means it allows you to allow multiple choices. It is almost the same as ASP: DropDownListj, and the difference is just that it can't drop. ASP: TEXTBOX control:
TextMode Properties: One line, does not set its value; multi-line, attribute is multiline; if you enter a password, the property is Password.
ROWS Attribute: Specifies the number of texts. It is only valid when the TextMode property is set to Multiline.
COLUMNS attribute: Specifies the number of columns for text.
ASP: Radiobutton & ASP: RadiobuttonList control:
use:
item 1 asp: listitem> item 2 ask: LISTITEM > Project 3 ask: listItem> asp: radiobuttonlist>
ASP: Radiobutton has a groupname property that is converted to HTML is its Name property.
ASP: Checkbox & Asp: CheckBoxList
Item 1 asp: listitem> item 2 ask: LISTITEM > asp: checkboxlist>
The attribute is similar to the front.
Lone lant
20040827