开发者

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

开发者 https://www.devze.com 2023-01-10 01:32 出处:网络
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 show

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

精彩评论

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