title: Must be Placed Inside a Form Tag With runat=server
body: <p>I have been attempting this all morning with no results. I can't seem to figure out what I'm doing wrong. I have checked out the two links (among many other unhelpful links) and have yet to solve my issue. This is a WebUserControl...</p>
  
  <p>Receiving the following error:</p>
  
  <blockquote>
    <p>Control 'HeadContent_CareersViewPosting_txtFirstName' of type
    'TextBox' must be placed inside a form tag with runat=server.</p>
  </blockquote>
  
  <p>Already attempted the suggestions <a href="https://stackoverflow.com/questions/6343630/gridview-must-be-placed-inside-a-form-tag-with-runat-server-even-after-the-gri">here</a>, <a href="http://forums.asp.net/t/1016960.aspx?Problem%20with%20GridView%20s%20RenderControl" rel="nofollow noreferrer">here</a> and <a href="https://stackoverflow.com/questions/17305359/gridview-must-be-placed-inside-a-form-tag-with-runat-server">here</a> and no results. Still received the exact same message. Some new suggestions would be greatly appreciated!</p>
  
  <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Careers View Posting.ascx.cs" Inherits="ascxStagingApplication.Careers.Careers_View_Posting" %&gt;
  &lt;asp:Panel ID="pnlResume" runat="server"&gt;
      &lt;table ID="tblMain" runat="server"&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;asp:Label ID="lblFirstName" runat="server" Text="* First Name"&gt;&lt;/asp:Label&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;asp:TextBox ID="txtFirstName" runat="server"&gt;&lt;/asp:TextBox&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;asp:Label ID="lblLastName" runat="server" Text="* Last Name"&gt;&lt;/asp:Label&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;asp:TextBox ID="txtLastName" runat="server"&gt;&lt;/asp:TextBox&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;asp:Label ID="lblEmail" runat="server" Text="* Email"&gt;&lt;/asp:Label&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;asp:TextBox ID="txtEmail" runat="server"&gt;&lt;/asp:TextBox&gt;
              &lt;/td&gt;
  
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;asp:Label ID="lblResume" runat="server" Text="* Resume"&gt;&lt;/asp:Label&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;asp:FileUpload ID="fupResume" runat="server" /&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;asp:Button ID="btnSubmit" runat="server" Text="Submit"/&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/asp:Panel&gt;
  </code></pre>
  
  <p>The user control is currently being placed onto a dummy webpage for testing. Here is the 'dummy' page code.</p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Page Careers View Posting.aspx.cs" Inherits="ascxStagingApplication.Careers.Page_Careers_View_Posting" %&gt;
  
  &lt;%@ Register Src="~/Careers/Careers View Posting.ascx" TagPrefix="uc1" TagName="CareersViewPosting" %&gt;
  
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"&gt;
      &lt;uc1:CareersViewPosting runat="server" id="CareersViewPosting" /&gt;
  &lt;/asp:Content&gt;
  </code></pre>