与嵌套 ASP.NET 应用程序共享 App_Code 和母版页
是否可以与嵌套应用程序共享 App_Code 目录和母版页?我的网络应用程序中安装了第三方新闻通讯应用程序,我希望它与“父”应用程序具有相同的外观和感觉。但是,当我尝试时,我收到一条错误消息,指出子应用程序无法引用任何外部文件。
我做了相当多的搜索,发现了很多关于在子应用程序中覆盖 Web.config 的页面,但我还没有找到任何非常适合我的情况的内容。
Web 服务器运行 .NET 2.0 和 IIS 5.0。
Is it possible to share the App_Code directory and master pages with a nested application? I have a third-party newsletter application installed in my web app and I want it to share the same look and feel as the "parent" application. When I try, though, I get an error saying that the child application can't reference any of the exterior files.
I've done quite a bit of searching and found a lot of pages on overriding the Web.config in a child application, but I haven't been able to find anything that quite fits my situation.
The web server is running .NET 2.0 with IIS 5.0.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从未尝试过此操作,但可以通过实现 VirtualPathProvider 在嵌套应用程序中。
I have never tried this, but it might be possible to access the master page of the "outer" application by implementing a VirtualPathProvider in the nested application.