开发者

Creating a user control - ascx project so all web sites in the solution will use in vs 2010

i am looking for easy way to make my ascx files code in one place and all my web sites in the solution to use , using vs 2010 . so if i make a changes in the ascx file rebuild\publish and all the dep开发者_JS百科ended websites will use the new version


If you need to share controls between web sites you need to implement custom server control.

Walkthrough: Developing and Using a Custom Web Server Control

User controls (ascx) are not supposed to be shared between web sites.

Although you can reference the same physical file from different projects, this is a bad approach.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜