Common Metadata and base classes of AjaxControlToolkit

Source: Internet
Author: User

Top 10 common metadata

Most of the above attributes are setRenderingTo make it easier to call the real implementation of the script, you still need the script.

The above metadata has helped us save a lot of effort, and once again played its role. A very useful thing.

Three basic categories

Both the IextenderControl and IscriptControl interfaces are provided to implement the extension. They are only in different ways. The first method must be used together with the original control. The second excuse is to directly inherit from the original control for the extension.

The ExtenderControl and ScriptControl abstract classes are also provided. this is just like adding the CompositeControl class to the InamingContainer interface of the CompositeControl Control in the composite control. However, you still need to implement the AjaxControlToolkit interface to re-expand the two classes, it provides ExtenderControlBase and ScriptControlBase. it cleverly utilizes the metadata feature to make the backend control settings more convenient. We don't need to implement IextenderControl and Other interfaces. Each of them provides the ScriptPath attribute to reference external scripts. the file also provides an IclientStateManager interface to save data after foreground operations and then return it to the background ExtenderControl. The IclientStateManager interface is not implemented, but the ClientState attribute is also provided. scriptControl also implements the ICallbackEventHandler interface to implement client callback.

In addition, the third class is the ScriptUserControl class. It inherits the content implemented by the class and similar user controls. This class can be inherited to extend the above features. Most of the functions can be used flexibly only by using scripts.

Http://www.itpub.net/thread-866780-1-1.html

Http://www.cnblogs.com/Clingingboy/archive/2007/06/18/787665.html

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.