title: Only Content Controls are Allowed (C# webcontrols)
body: <p>So, I'm not sure what's going on. My boss wasn't pleased with me using MVC and Razor, so I'm being forced to code with this nasty webcontrol/codebehind style. =/</p>
  
  <p>The error is:</p>
  
  <pre><code>Only Content controls are allowed directly in a content page that contains Content controls.
  </code></pre>
  
  <p>Here is the masterpage:</p>
  
  <pre><code>&lt;%@ Master Language="C#"%&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Application Form&lt;/title&gt;
  &lt;/head&gt;
   &lt;body&gt;
      &lt;div id="container"&gt;
          &lt;asp:contentplaceholder id="contentPlaceHolder" runat="server" /&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And here is the Default.aspx page that's throwing the error.</p>
  
  <pre><code>&lt;%@ Page Language="C#" Inherits="dumb.Default" MasterPageFile="MasterPage.master" %&gt;
  
  &lt;h2&gt;Application Form&lt;/h2&gt;
  &lt;asp:Content id="content" ContentPlaceHolderID="contentPlaceHolder" runat="server"&gt;
      &lt;p&gt;Please complete this application.&lt;/p&gt;
  
      &lt;form action="Default.aspx" method="post" runat="server"&gt;
              &lt;div&gt;
                      &lt;span class="spaced"&gt;Name:&lt;/span&gt;&lt;asp:TextBox id="name" runat="server" /&gt;
              &lt;/div&gt;
      &lt;/form&gt;
      &lt;p&gt;
              &lt;asp:Label id="finalmessage" runat="server" /&gt;
      &lt;/p&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>And the silly Default.aspx.cs codebehind...</p>
  
  <p>using System;
  using System.Web;
  using System.Web.UI;</p>
  
  <pre><code>namespace dumb
  {
      public partial class Default : System.Web.UI.Page
      {
              protected void Page_Load (object sender, EventArgs e)
              {
                      if (IsPostBack) {
                              finalmessage.Text = "Submission Processed Successfully!";
                      }
              }
      }
  }
  </code></pre>