2000-10-31 · Zhao Yu · Yesky
In ASP+, when the server is retrieved from the database for the first time, the data is saved in the variable. When the server receives the same request, the cache data is passed directly from the server to the client. The database is.
Of course, you have to set the cache period of the data in the code. When the specified time or meets specific conditions, you can empty the cache and retrieve new data. As for how to set the period of cache, it depends entirely on your needs and skills.
4.ADO+, more easy to use ADO
Good horses with good saddle. While launching ASP+, Microsoft also launched a new ADO, namely ADO+. ADO+processing data in an object-oriented manner in an object-oriented manner. In ADO, the data is manifested in a two -dimensional form, that is, line, column. But if there is a specific ranks in the recordset itself, it is a recordset, which forms a new dimension? This situation is tricky in ADO, but using ADO+to create such a multi -dimensional RecordSet is only to raise his hand.
In fact, the above -mentioned RecordSet no longer exists in Ado+, and is replaced by DataSet. In Ado+, DataSet is equivalent to the collection of RecordSet, and DataView is similar to RecordSet.
3. Server terminal control
Another seductive part of ASP+is to increase more easy -to -use server -side controls. Microsoft obviously listened to the feedback from the person. Many tedious and repeated tasks are handed over to the control. The following is the approximate classification of these controls:
1. List Controls
This type of control makes you create a list in the client browser easier and simpler, and at the same time give you more customized. Now you can spend less energy on the page layout. Examples are: Repeater, DataList, and DataGrid Controls
2. Rich Controls
Such controls are used to generate more complicated and rich HTML elements on the client. Such as: Calender Control
3. Validation Controls
Verifying controls are hidden controls, which are used to perform verifications from clients and server. The number of such controls is quite large. It can complete a variety of verification tasks that previously needed to write code. Programmers can now save a lot of if ... Else statements. Such as: RequiredFieldValidator Control, Comparevalidator Control, Rangevalidator Control, And RegulaRXPRESSIONVALIDATOR Control