用户控件和自定义控件之间的主要区别是什么? [英] what is the main difference between user control and custom control?

查看:74
本文介绍了用户控件和自定义控件之间的主要区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人知道吗?

用户控件和自定义控件之间的主要区别是什么?

解决方案

最大的区别在于,用户控件以ascx的形式实现,其中服务器控件是基于代码的. br/>
快速的Google搜索将显示更多信息.


Google是您的朋友:很好,经常拜访他.与在这里发布问题相比,他可以更快地回答问题.

使用您的主题作为搜索词 进行的快速搜索 使其成为了热门搜索:
MSDN:用户控件与自定义控件的概述 [ 用户控件页面文件 with 扩展名.ascx,只能在单个应用程序中使用. 但是自定义控件是已编译的代码组件,即可以在多个应用程序中使用的程序集(dll文件).然后,您将能够 在 Visual Studio IDE的工具箱中的控件

hi,

Can anyone know?

what is the main difference between user control and custom control?

解决方案

The big difference is a User Control is implemented as an ascx where Server Control is a code based.

A quick Google search will show much more information.


Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search using your subject as the search term gave this as the top hit:
MSDN: Overview of user controls vs. custom controls[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.


User Control is a page file with extension .ascx which can only be used within a single application.


But custom controls are compiled code components i.e. assemblies(dll files) that can be used across multiple applications.And you will be able to see the control in Toolbox of Visual studio IDE


这篇关于用户控件和自定义控件之间的主要区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆