Home Dashboard Directory Help

ASP.NET StylesheetTheme can't be use with Master Page in VS2008 RTM by OceanWind


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 314745
Opened: 12/3/2007 8:27:48 PM
Access Restriction: Public
Duplicates: 332925
User(s) can reproduce this bug


Design view complains "The page contains markup that is not valid when attached to a Master Page" when using "StylesheetTheme" with in a page that uses a master page. It can be fixed when I modify the source code, even I just press a space.
Sign in to post a comment.
Posted by Emanuele Savarese on 4/24/2008 at 3:39 AM
there is a SP road-map for Visual Studio 2008
or error will die with the next realease of Visual Studio?
Posted by csnyderasdfasdf on 4/8/2008 at 1:06 PM
Still a major annoyance. Every time I load a project I've got to go to Design View and wait for a refresh. When (and is) this going to be fixed??
Posted by Simon Gregory _Marmite_ on 1/22/2008 at 8:17 AM
Is there going to be a proper fix for this at some point? Surely it's an easy one if all you need to do is issue a 'Refresh' if the designer is about to pop up that message! :)
Posted by _Greg_ on 1/7/2008 at 10:46 AM
I can easily reproduce this bug.

1) Create a new ASP.NET Web Application project in Visual Studio 2008 RTM.
2) Add the App_Themes directory.
3) Add a .css file to the theme.
4) Add a Master Page
5) Add a Content Page for the new Master Page.
6) Set the StylesheetTheme property to your new theme.
7) View the content page in Design mode.
Posted by Microsoft on 12/5/2007 at 4:43 PM

Thank you for reporting the issue. As a workaround, instead of editing the file, you can click View | Refresh in Design view and that make content page render correctly.

Posted by Microsoft on 12/4/2007 at 2:37 AM
Thanks for reporting the issue.
In order to fix the issue, we must first reproduce the issue in our labs. We are unable to reproduce the issue with the steps you provided. See attached zipped project.
It may help if you provide us with:

1. a demo project
2. more exact steps to repro the issue.

If we do not receive a response from you after 7-days , we will automatically close your issue. There is no obligation to respond -- at any time you may edit your issue via Connect and change the status to “Active.”

Thank you,
Visual Studio Product Team
Sign in to post a workaround.