title: Control 'ctl00_txtDebug' of type 'TextBox' must be placed inside a form tag with runat=server
body: <p>I am trying to render a ascx control as a view in MVC and I am getting the following error</p>
  
  <blockquote>
    <p>Control 'ctl00_txtDebug' of type 'TextBox' must be placed inside a form tag with runat=server.</p>
  </blockquote>
  
  <p>The debugger stops on this line in the ascx control</p>
  
  <pre><code>function dtpaging_Page_Selected(vPageNumber) {
      document.getElementById("&lt;%=mControlName %&gt;txtPageNumber").value = vPageNumber
      &lt;%=Post_Method %&gt;
  }
  </code></pre>
  
  <p>So I am thinking that my method is working to get the control and begin the rendering. Why would it throw this error?  I can attach more code if needed</p>