views:

397

answers:

1

I have the following problem:

I run Visual Web Developer 2008. I have one Master Page and few child pages. On the Master Page I have Login View control, as below:

    <asp:LoginView ID="LoginView1" runat="server">

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

        <AnonymousTemplate>
            <asp:Login ID="Login1" runat="server" BackColor="White" Font-Size="Small">
            </asp:Login>             
        </AnonymousTemplate>

    </asp:LoginView>

When I work on one of child pages and I switch to Design view I see only Master Page with the Login Box (only AnonymousTemplate). I cannot change the mode of Login View to "LoggedInTemplate" because all Master Page elements are disabled in child page Design mode. Bug or feature? How can I preview Design for my child page?

+1  A: 

Unfortunately, this appears to be by design. If you must use the Design view, you will have to temporarily move the ContentPlaceHolder outside of the LoginView.

In all honesty though, I have never trusted the Design view - it never shows the page exactly like it appears in a given browser (even Internet Explorer). I prefer using "View in Browser" to see what my page looks like.

Jason Berkan
VS2010 has much better handling in design view, and even passes the ACID1 test! However, I for one can't wait to be able to turn off design view ;)
Zhaph - Ben Duguid