Web controls of ASP. NET (1)

Source: Internet
Author: User

Crystal translation-yesky

Web controls makes it easy to create forms and HTML controls. For example, in a typical select box/select box in ASP,
You have to create a loop to let the control system load data. However, in ASP.net, you will have a "data-bound", which means that it will
Connection, and data is automatically loaded.

These functions sound amazing, but let's examine them in detail. With traditional ASP and ADO, you can choose where to place data
Database cursors (server side or user side) depend on the performance and function type you want to create to make decisions. But in ASP +, you do not
Then select. Because the link between the web controls and the server forces you to place everything on the client. For customers and servers
It is not suitable for a performance center because it must store all the data in the local memory.

Web controls also introduces new syntaxes in strict XML terms. Therefore, you no longer have loose code editing processes. You must disable all
. Of course, most people will feel very painful to adapt to this function, but the strict code editing process usually means more
Fewer errors.

On the other hand, the defect of web forms is that to use most of the functions of web form, you must use the POST method of forms; for example, state
Management. When you use the GET method, all the best will be disabled, and you will not be able to use the corresponding functions. This restriction is too unnecessary.

ASP. NET Server Controls

The previous components of many systems are now ASP. NET Server Controls. For example, the ad rotator has been upgraded and started to store its messages using XML.
But not just that. There is a complete control system, which can do anything, from managing your form status on your behalf to displaying calendars and desktops. In fact,
Almost every HTML element has ASP. NET Server Controls. through ASP. NET Server Control, the interaction with HTML elements can be stylized. Example
For example, you no longer need to make a detour to maintain the OPTION selected in The LISTBOX. You only need to instruct LISTBOX to operate on the server and manage it on your behalf.
You can. More conveniently, you only need to set the program, and The LISTBOX will display the selected project in sequence according to the command.


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.