Problem with Master Page and Virtual Path Provider

杀马特。学长 韩版系。学妹 提交于 2019-12-06 07:23:24

To get design time support for shared MP you need to provide markup for VS to work with.

You can do this by copying your MP's markup file in you consuming project, removing the codebehind attribute and delete the codebehind file OR add a linked copy with a blank codebehind.

Now set your content page's masterpage to the stub you just created and you should have design time support.

Your VPP should render from the embedded markup at runtime.

Not optimal but if you want design-time support I think this is the only way.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!