Home Dashboard Directory Help
Search

Visual Studio 2008 Design Mode Nested Master Pages Bug by bsfiosco


Status: 

Closed
 as Fixed Help for as Fixed


4
0
Sign in
to vote
Type: Bug
ID: 332925
Opened: 3/13/2008 11:21:17 AM
Access Restriction: Public
Primary Feedback Item: 314745
0
Workaround(s)
view
2
User(s) can reproduce this bug

Description

When working on an aspx page that uses nested master pages the features of Design Mode do not work properly and it also causes a significant performance issues. For example when the web form that is using the master page goes into design mode it will not properly show the page contents unless all master pages are also loaded into the open files window. Additially once a web form using a nested master page is loaded in design mode it takes a significantly longer amount of time to save that page to disk after being edited. This occurs even after leaving design mode and also after closing all of the master pages. The only way to fix that is to close the solution and open it again.
Details
Sign in to post a comment.
Posted by Jose44 on 3/3/2010 at 2:02 AM
I was working with master pages in DesingTime and I have found a issue.
If I have

Master 1:
         <asp:ContentPlaceHolder ID="cph_area_trabajo" runat="server" />

         <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server" >
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server" />                    
         </asp:ContentPlaceHolder>


Master 2: <%@ Master MasterPageFile="~/Master/Master1.master" Language="C#" %>
             <asp:Content ID="cAreaTrabajo" ContentPlaceHolderID="cph_area_trabajo" runat="server">
                     <asp:ContentPlaceHolder ID="cph_area_trabajo" runat="server" />
             </asp:Content>

             <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server" >
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder3" runat="server" />
             </asp:Content>


Master 3: <%@ Master MasterPageFile="~/Master/Master2.master" Language="C#" %>
                <asp:Content ID="Content71" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
                         <asp:RadioButton ID="RadioButton1" runat="server" />
                </asp:Content>

                <asp:Content ID="cAreaTrabajo" ContentPlaceHolderID="cph_area_trabajo" runat="server">
                     <asp:RadioButton ID="RadioButton2" runat="server" />
                 </asp:Content>

the initizalize only works with the radioButton contained in cph_are_trabajo but it never calls the radio button contained in ContenPlaceHolder3, I suppose that is for <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server" ><asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server" /></asp:ContentPlaceHolder>. a contentPlaceHolder inside other ContentPlaceHolder
Posted by Shenlong on 8/18/2009 at 7:57 PM
So, I cannot use cssClass ? That is bad... Any workaround with using nested Master Pages and cssClass ? Any fixes for it too? Apparently, I've patched VS2008 SP1 and also patched my Expression Web 2 to the latest... but doesn't fix that thing.

Is there specific fix since the status is Fixed? Doesn't seem to find that.... Workaround without disabling cssClass?
Posted by Microsoft on 4/15/2008 at 1:54 PM
Hi bsfiosco -

Thank you for reporting this behavior. We are currently working on a solution for the next release of the product (most like SP1).

Thanks,
The Web Tools team
Posted by Microsoft on 3/13/2008 at 8:46 PM
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.
It may help if you provide us with:

1. a demo project
2. more snapshots.

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.