且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用户控件、服务器控件和服务器控件有什么区别?自定义控件?

更新时间:2023-10-13 22:26:46

  • 用户控件是使用设计器在 Web 项目中构建的控件.它们通常只对 Web 应用程序私有(尽管有一些方法可以使它们对其他项目可用).

    • User Controls are controls built with a designer within a web project. They typically are only private to a web application (Although there are ways you can make them available to other projects).

      服务器控件是也称为 Web 控件的控件.这些是可重用的控件,无需设计器的帮助即可呈现其 html,它们是在与 Web 应用程序分开的程序集中创建的,适用于将在许多不同的 Web 应用程序中使用的控件

      Server Controls are controls that are also known as Web Controls. These are reusable controls that render their html without the aid of a designer, they are created in a seperate assembly from the web application, are appropiate for controls which will be used in many different web applications

      复合控件是 Web 控件的子类型,是由其他 Web 控件组成(组合)的控件.

      Composite Controls are a sub type of Web Controls and are controls which are made up (composed) of other web controls.

      除了由您或您的团队自定义构建的控件之外,我从未听说过自定义控件意味着其他任何东西.它可以包括用户、Web 或复合控件.

      I've never heard of a custom control to mean anything other then a control which is custom built by you or your team. And it could include user, web or composite controls.