开发者

ASP.NET aspx with dynamic base page does not show up in design tab of VS

I noticed a behaviour in Visual Studio that the design tab for aspx page does not work if I use a dynamic master page using a base page. I dynamically set the master page to implement theming. It shows a master page error and says "The page has controls that require a Master Page r开发者_Go百科eference, but none is specified".

Is there any solution? Or any work around?

I currently set the base/master page to a default master page in the page for myself and work on the page. Once I complete the page, I remove the master page attribute. I wanted to know if some better method is available.


The "workaround" is to style while debugging/browsing the page. The designer can't possibly know what your master page is if you are setting it dynamically.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜