如何使用户控件可用于多个项目? [英] How to make usercontrol available to multiple projects?
本文介绍了如何使用户控件可用于多个项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一组在ASP.NET网站用户控件,我想和大家分享到多个网站。但似乎我们不能创建一个类库,在它与ascx的用户控件文件。虽然MSDN建议建立一个Web控件,我宁可找到一种方法来共享存在的控制,而不是摧毁它们来创建新的Web控件。
I have a set of UserControls in a ASP.NET website that I would like to share to multiple website. But it seems we are unable to create a class library with UserControls in it with the ascx file. While MSDN suggest building a Web Control, I Would rather find a way to share the existent controls instead of destroying them to create new web controls.
是否有创建用户控件库的方法吗?
Is there any way of creating a library of UserControls?
感谢
推荐答案
下面是这样做的一种方式:
Here is one way of doing it:
这篇关于如何使用户控件可用于多个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文