如何在c#.net中包含cll in dll? [英] How to include css in dll in c#.net ?

查看:82
本文介绍了如何在c#.net中包含cll in dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想要为错误消息和成功消息创建一个自定义Literal控件。因此,我正在创建包含css的自定义服务器控件。

请通过ecample和demo告诉我如何在dll中包含css。

want to create one custom Literal control for error messages and success messages. So for that I am creating custom server control with including css.
Please let me know how to include css in dll with ecample and demo.

推荐答案

您可以在汇编信息文件中使用下面给出的代码来嵌入dll中的css文件。



有关更多信息,请转到如何在大会中嵌入/访问JavaScript,CSS,图像。 [ ^ ]

You can use below given code on assembly info file to imbed css file in dll.

For more information go to How to Embed /Access JavaScript, CSS, Images in an Assembly.[^]
[assembly: System.Web.UI.WebResource("TextBox.css", "text/css")];


请用Example清除这个。我读过Bhupendra Sinha先生的这篇文章。

但我想要深刻的例子。请详细给我解决方案。
Please clear this with Example. I have read this article of Bhupendra Sinha sir.
But I want deep example. Please give me solution in details.


这篇关于如何在c#.net中包含cll in dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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