asp+ new Contact (3) {turn}

Source: Internet
Author: User
Tags time limit client
2000-10-31 · Zhao in Yesky


In asp+, when the server retrieves the data from the database for the first time, the data is saved in the variable, and when the server receives the same request, the cached data is passed directly from the server to the client, and now we can do without disturbing the database.

Of course, you have to set the cache time of the data in the code, to the specified times or to meet certain conditions, empty the cache, retrieve the new data. How to set the time limit for caching depends entirely on your needs and skills.

4.ado+, easier to use ADO

Good horse with a good saddle, Microsoft in the introduction of asp+, but also launched a new ADO, that is, ado+. ado+ processes data in an n-dimensional (n-dimensional), object-oriented way. In ADO, the data is expressed in two-dimensional form, that is, the column. But what if a particular row in the recordset itself is a recordset, creating a new dimension? Such a situation is tricky in ADO, and creating such a multidimensional Recordset with ado+ is just a snap.

In fact, the recordset mentioned above has ceased to exist in the ado+ and has been replaced by a dataset. In ado+, the dataset corresponds to a collection of recordsets, and DataView is similar to a recordset.

Three. Server-side controls

Another attraction of asp+ is that it adds more useful server-side controls, and Microsoft clearly listens to web developer feedback, adding that the new controls not only enhance the functionality of the asp+, but also give the controls the many tedious repetitive tasks that have given developers headaches. The following are rough categories of these controls:

1.List controls

Such controls make it easier to create lists in the client browser, and give you more customization, and now you can spend less energy on the layout of the page. Examples are: Repeater, DataList, and DataGrid controls

2.Rich controls

This type of control is used to generate more complex, rich HTML elements on the client. such as: Calender control

3.Validation controls

Validation controls are implicit controls that are used to perform client-and server-side validation. The number of such controls is quite large enough to complete a variety of verification tasks that previously required manual coding, and programmers can now save a lot of if ... else statements. such as: RequiredFieldValidator control, CompareValidator control, RangeValidator control, and RegularExpressionValidator Control




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.