title: HTML5 Types in ASP.NET
body: <p>Site will exclusively be used on mobile devices. So for fields requiring only numeric input, I want to bring up the numeric keypad. I can successfully do this by using an html input element with the type set to <code>tel</code>. I want to add an <code>asp:RequiredFieldValidator</code> to this field and based on <a href="http://msdn.microsoft.com/en-us/library/ms972961.aspx" rel="nofollow noreferrer">MSDN</a>.</p>
  
  <p>I need to set the input to <code>runat="server"</code>. When I do this, I get this error;</p>
  
  <blockquote>
    <p><code>tel</code> is not a valid type for an input tag.</p>
  </blockquote>
  
  <p>If I remove the <code>runat="server"</code>, I get </p>
  
  <blockquote>
    <p>Unable to find control id <code>Contract</code> referenced by the <code>ControlToValidate</code> property of <code>''</code></p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;input type="tel" runat="server" id="Contract"&gt;&lt;/input&gt;
  &lt;asp:RequiredFieldValidator runat="server" ControlToValidate="Contract" 
                              ValidationGroup="IfOnRent" Text="*" 
                              ErrorMessage="Contract Required"&gt;
  &lt;/asp:RequiredFieldValidator&gt;
  </code></pre>
  
  <p>Am I just out of luck and have to code my own validations?</p>