title: Using gridview within a masterpage
body: <p>I am creating a new page in VS2005 (VB) and it has a gridview, my problem is when I try to insert the grid into the ContentPlaceHolder (in design mode) it ends up somewhere else on the page all together.  I am using a masterpage, but not sure what I am doing wrong.</p>
  
  <p>ASPX code</p>
  
  <pre><code>&lt;%@ Page Language="vb" MasterPageFile="~/secure/Master1.Master" CodeBehind="Master1.Master.vb" Inherits="Main.LiveCalendar" %&gt;
  
  &lt;asp:Content ID="ContentPlaceHolder" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"&gt;
  
  &lt;h1&gt;Live Calendar&lt;/h1&gt;
  
          &lt;%--&lt;asp:Label runat="server" id="lblMessage" Text=""&gt;&lt;/asp:Label&gt;--%&gt;
          &lt;asp:gridview id="GridView1" runat="server" allowsorting="True" autogeneratecolumns="False"
                  datasourceid="SqlDataSource1" style="z-index: 100; left: 0px; position: absolute;
                  top: 0px" Height="101px" Width="224px"&gt;&lt;Columns&gt;
          &lt;asp:BoundField DataField="P_AE_ID" SortExpression="P_AE_ID" HeaderText="P_AE_ID"&gt;&lt;/asp:BoundField&gt;
          &lt;asp:BoundField DataField="P_Name" SortExpression="P_Name" HeaderText="P_Name"&gt;&lt;/asp:BoundField&gt;
          &lt;asp:BoundField DataField="P_Start" SortExpression="P_Start" HeaderText="P_Win_Start"&gt;&lt;/asp:BoundField&gt;
          &lt;asp:BoundField DataField="P_End" SortExpression="P_End" HeaderText="P_Win_End"&gt;&lt;/asp:BoundField&gt;
          &lt;asp:BoundField DataField="P_Status" SortExpression="P_Status" HeaderText="P_Status"&gt;&lt;/asp:BoundField&gt;
          &lt;asp:BoundField ReadOnly="True" DataField="CountOfPED_ID" SortExpression="CountOfPED_ID" HeaderText="CountOfPED_ID"&gt;&lt;/asp:BoundField&gt;
          &lt;/Columns&gt;
          &lt;/asp:gridview&gt;
          &lt;p&gt;
              &amp;nbsp;&lt;asp:sqldatasource id="SqlDataSource1" runat="server" connectionstring="&lt;%$ ConnectionStrings:dbConnection %&gt;"
                  selectcommand="web_Public" selectcommandtype="StoredProcedure"&gt;&lt;/asp:sqldatasource&gt;
  
          &lt;/p&gt;
  
  
  &lt;/asp:Content&gt;
  </code></pre>