简体   繁体   English

在同一解决方案中的两个Asp.Net Web应用程序之间共享文件夹

[英]Share a folder between two Asp.Net web applications in the same solution

I'm currently working on an Asp.net MVC Web application. 我目前正在研究Asp.net MVC Web应用程序。 In my solution, there're two projects: front office and back office. 在我的解决方案中,有两个项目:前台和后台。 I'd like to share a folder that'll contain resources such as images, documents, etc... that'll be uploaded through the web application. 我想共享一个文件夹,其中包含图像,文档等资源,这些资源将通过Web应用程序上传。

For example, when I upload an image using the back office, I only need to store the name of the image in my database, that way I'll be able to use this image in my front office part. 例如,当我使用后台上传图像时,只需将图像名称存储在数据库中,这样我就可以在前台使用该图像。 So I need to share a folder between both my applications. 因此,我需要在两个应用程序之间共享一个文件夹。

Thanks for responses! 感谢您的回应!

当您有两个应用程序时,我认为最好的方法是:创建一个新的虚拟目录,将其映射到该文件夹​​(文件所在的目录)到第二个应用程序中,然后编写一个HttpHandler从那里获取文件。

You could use a branch within your source control environment if that is what you're asking. 如果您要的是,可以在源代码控制环境中使用分支。

-Shaun -Shaun

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 需要如何在两个 .net 2.0 web 运行在同一域上的应用程序之间共享“会话”数据的工作示例 - need working example of how to share “session” data between two .net 2.0 web applications running on the same domain 我可以使用 ASP.NET 在同一个 web 域上上传两个 web 应用程序吗? - Can I upload two web applications on the same web domain using ASP.NET? 在两个asp.net MVC Web应用程序之间传递非ASCII字符将无法识别 - Passing non-ASCII characters between two asp.net MVC web applications will not be recognized ASP.Net Web应用程序的探查器? - Profilers for ASP.Net Web Applications? 在许多公司的asp.net mvc 3 Web应用程序上共享公用.net类库的一种容易维护的方法是什么? - What is an easily maintainable way to share a common .net class library over many corporate asp.net mvc 3 web applications? 解决方案中两个项目的asp.net成员身份 - asp.net membership for two projects in a solution 在解决方案的项目之间共享相同的构建 output 文件夹是一种不好的做法吗? - Is it a bad practice to share the same build output folder between projects of a solution? 在两个ASP.NET应用程序之间共享会话,其中一个嵌套在另一个ASP.NET应用程序中 - Sharing session between two ASP.NET applications, where one is nested within the other 如何在父控制台应用程序和ASP.NET Web应用程序之间共享app.config - How to share app.config between parent console application and ASP.NET web application 在数据库调用之间共享ASP.NET Web App中的SqlConnection对象 - Share SqlConnection object in ASP.NET Web App Between DB calls
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM