Link to home
Start Free TrialLog in
Avatar of cdemott33
cdemott33Flag 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?
Avatar of Anuradha Goli
Anuradha Goli
Flag of Ireland image

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.
Avatar of cdemott33


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

Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial