User Control and custom control?

Source: Internet
Author: User

The user control is represented by the. ascx file. In "Add new project", click "vveb user control". It is not a compilation code, and the compilation is dynamic with the web page.

The custom control is represented in the DLL file, which is the compilation code. In the "new project" module, click "Web control library ",

User Controls do not appear in the toolbox, while custom controls do.

User Controls Support caching, while custom controls do not support caching.

User Controls provide limited support for users who use visual design, while custom controls provide comprehensive support.

User Controls can be reused in an application, but cannot be reused across applications.

A custom control can be used across applications. It is placed in a central library called Global Assembly Cache so that all applications on that server can use it.

The user control cannot exist and be used independently. It requires the Asp.net page as the container.

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.