title: ASP.net Contact us page
body: <p>This is a pretty simple question as i am new to asp.net i am trying to develop a contact us page and i am getting the following error. </p>
  
  <p>"Control 'ContentPlaceHolder1_nameBox' of type 'TextBox' must be placed inside a form tag with runat=server"</p>
  
  <p>The following is my code so far for that page.</p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ContactUs.aspx.cs" Inherits="Craigavon_Aquatics.ContactUs" %&gt;
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"&gt;
  &lt;h2&gt;
      Contact Us&lt;/h2&gt;
  &lt;p&gt;
      Please fill in the form below to contact us.&lt;/p&gt;
  
  &lt;p&gt;
      &amp;nbsp;&lt;/p&gt;
  
  &lt;/asp:Content&gt;
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"&gt;
  &lt;table style="width: 100%"&gt;
      &lt;tr&gt;
          &lt;td&gt;
              Name: (Required)&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
  &lt;asp:TextBox ID="nameBox" runat="server" Width="278px"&gt;&lt;/asp:TextBox&gt;                
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              Email: (Required)&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
  
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/asp:Content&gt;
  </code></pre>