How do I share user controls between web applications in ASP.NET?

前端 未结 7 1644
广开言路
广开言路 2020-12-30 07:10

This question is a follow up to my question about sharing resources between web applications, because I have not yet found a good solution.

I have a web application

7条回答
  •  不知归路
    2020-12-30 07:34

    Check this post for how to solve this issue.

    The basic idea is to change your project to have a prebuild step to copy over the .ascx files to a subdirectory of the web application. Then just refer to those copies when using them. Of course you also need to reference the UserControls assembly as well.

提交回复
热议问题