编译Web应用程序项目的ascx成DLL

编译Web应用程序项目的ascx成DLL

问题描述:

是否有可能编译Web应用程序项目的.ascx(用户控件)插入一个dll?

Is it possible to compile a web application project .ascx (user control) into a dll?

我要做到以下几点:


  1. 使用在多个网站相同的控制

  2. 嵌入CSS和.js文件作为资源到控制

  3. 能够更新超级容易。如果用户控制更新,我只是想更新1 .dll文件

我已经成功地跟着这篇文章中,http://msdn.microsoft.com/en-us/library/aa479318.aspx.

I have successfully followed this article, http://msdn.microsoft.com/en-us/library/aa479318.aspx.

但是,使用的网站项目,我不能嵌入JS CSS的资源投入到网站的项目。

However, that uses web site projects, and I cannot embed js css as resources into web site projects.

任何想法?我要对这个错误,我应该改变的方法呢?

Any ideas? Am I going about this wrong, should I change the approach?

据difcult使用用户控件以这种方式,由于标记ASCX文件。如果你想创建可重用的控件库您是关闭创建自定义的控制要好得多。

It is difcult to use user controls in this way due to the markup ascx file. If you want to create reusable control libraries your are much better off creating custom controls.