编译Web应用程序项目的ascx成DLL [英] Compile web application project ascx into dll

查看:117
本文介绍了编译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文件

我已经成功地跟着这篇文章中,<一个href=\"http://msdn.microsoft.com/en-us/library/aa479318.aspx\">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.

这篇关于编译Web应用程序项目的ascx成DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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