Best way to share ASP.NET .ascx controls across different website applications?

后端 未结 10 658
轮回少年
轮回少年 2021-01-04 04:39

Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX controls that you want to share across these 2 applications.

What\'s the best way

10条回答
  •  日久生厌
    2021-01-04 05:14

    Scott Guthrie gives some great advice here on how to set up a User Control Library project, then use pre-build events to copy the user controls into multiple projects. It works really well.

    http://webproject.scottgu.com/CSharp/usercontrols/usercontrols.aspx

提交回复
热议问题