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



Question:

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 reference, 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.


Solution:1

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.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »