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

前端 未结 7 1496
广开言路
广开言路 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:50

    hey this is not the best way to do things but i used to do this in my asp.net 1.1 days - you can try this - shift your user controls into a seperate project, and publish this project as a virtual directory under iis

    as long as you are not using codebehind - your updates would be cool (only update shared user control folder)

    if you do use codebehinds - redeploy the user control dlls into different projects


    once you are done with this - map these user controls into all projects using their virtual paths

    check these links - http://aspadvice.com/blogs/ssmith/archive/2006/10/05/Tip_3A00_-Share-User-Controls-Between-Applications-in-ASP.NET.aspx

    AND

    http://www.123aspx.com/redir.aspx?res=30887

    0 讨论(0)
提交回复
热议问题