First, built-in objects
1, Application
Storage on server side, consuming server memory
Life cycle: Permanent
This is the object that everyone accesses.
Pass Value: The object type can be passed to the objects.
string S =textbox1.text;
application["AAA"]=S;
Value:
if (application["AAA"]!=null)
{
label1.text=application["AAA"].tostring ();
}
2, ViewState
ViewState is the clas= "Aspnethidden" div in the HTML code generated after ASP, with many hidden fields.
These are called ViewState.
Ii. command usage of repeater
The command usage of repeater is the native event usage of the Repeater control
Repeater inside if the loop control, the ID of the control will be changed
This event is triggered by Repeater's ItemCommand event to give each control of the loop a delegate event-any control that executes the commit
If you loop a control that is two different functions, group the controls by using the CommandName property
Attribute-commandname= "" In order to group the button events, fill in the quotation marks. Two different controls fill in different content.
Property-commandargument= "PRIMARY key value" uses this property to fetch the primary key value to manipulate the data.
Two other events of repeater:
ItemCreated-After the row is created, bind the data before
ItemDataBound-After binding the data, execute it again
"2017-05-22" WebForm built-in objects: command usage for application and viewstate, repeater