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.
精彩评论