Avatar of cdemott33
Flag for United States of America asked on

Problem with Design View and MasterPage Content Place holder

I have a wierd problem and I'm not really sure how to fix it.  

I've got a page called "Visits.aspx" (Not that the name matters) that uses a MasterPage.  When I open the Visits.aspx page you can see the ContentPlaceHolder1(Custom) area outlined in purple.  (See screenshot attached)

Now, for whatever strange reason, as I add content (Text, Images, Charts, Gridview, etc.) the ContentPlaceHolder does NOT expand????  

Have a look at my screenshot.  You can see the purple board that indicated the ContentPlaceHolder and you can see the top of a Chart Control.  The rest of the chart control can't be seen because the Placeholder is not expanding.

How in the world do I fix this odd bug?
ASP.NETVisual Basic.NETC#

Avatar of undefined
Last Comment
Nasir Razzaq

8/22/2022 - Mon
Anuradha Goli

It is in design mode.
But can you view the chart when you run the application.

Could you post your HTML code of the visits.aspx to analyze the issue.

hi Anuradhay - It works fine when viewed in a browsers.  No issues.  The probelm is the "Design" view.  It's a pain in the butt.

hi hafeezmca - My ASPX code is below.

<%@ Page Title="" Language="VB" MasterPageFile="~/Reports/MasterPages/Reports-MasterPage.master" AutoEventWireup="false" CodeFile="Visits.aspx.vb" Inherits="Reports_ReportTypes_Visits_Visits" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="pageHeader" class="clearfloat">
        <div class="logo floatRight">
            <asp:Image ID="imgLogoDot" runat="server" ImageUrl="~/Images/IDD_Dots_Logo.jpg" AlternateText="Innovative Dispaly & Design"/>
        <div class="heading floatLeft">
            <h2>Event Success Report</h2>
            <h3>Visitor Reports</h3>
    <div id="pageSubHeader">
        <div class="pshAbout">
            <strong>Visitor Report - What Is This Data?:</strong> The Registered Attendee report is a list of people who pre-registered for this event.
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                <asp:ControlParameter ControlID="hfSelectedEventID" Name="EventID" 
                    PropertyName="Value" Type="Int32" />

        <asp:HiddenField ID="hfSelectedEventID" runat="server" />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataSourceID="ObjectDataSource1" ForeColor="#333333" 
            GridLines="None" CssClass="centeredContent">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <asp:BoundField DataField="eventDate" HeaderText="Date" 
                    SortExpression="eventDate" />
                <asp:BoundField DataField="numberOfVisitors" HeaderText="# Of Visitors" 
                    ReadOnly="True" SortExpression="numberOfVisitors" />
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        <div class="centeredText">
            <asp:Chart ID="Chart1" runat="server" DataSourceID="ObjectDataSource1" 
                Width="500px" Height="350px">
                    <asp:Series Name="Series1" XValueMember="eventDate" CustomProperties="DrawingStyle=Cylinder, 
             MaxPixelPointWidth=50" YValueMembers="numberOfVisitors" ShadowOffset="2" IsValueShownAsLabel="False">
                    <asp:ChartArea Name="ChartArea1" BackGradientStyle="TopBottom" BackSecondaryColor="#B6D6EC" BorderDashStyle="Solid" BorderWidth="2">

Open in new window

Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Nasir Razzaq

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question