How to set input type="number" on dynamic textbox in c# codebehind
<p>I have a dynamically created textbox in a c#/asp.net web page that I want to adapt to mobile browsers.  </p>

<blockquote>
  <p>TextBox qtybox = new TextBox();<br>
  qtybox.ID="qtybox";<br>
  qtybox.Text = "0";<br>
  qtybox.Width = 30;<br>
  container.Controls.Add(qtybox);</p>
</blockquote>

<p>I see that on a  I can set this in HTML, if it were a straight HTML form:</p>

<blockquote>
  <p>&lt; input type = "number" ></p>
</blockquote>

<p>in order to bring up the numeric keyboard.   </p>

<p>How can I do this with my dynamic textbox in codebehind, or can I?  Is there an alternate way to put a numeric input control on my page dynamically in codebehind that would work better?  Do I need to use Javascript to "hack" the control after it renders? (I'd rather have a .NET way of doing it if possible.)<br>
Thanks</p>
