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.
精彩评论