asp.net Textbox Textmode Number, allow numbers only
<p>I would just like to know if there is a way in ASP.NET to allow only numbers in textboxes with <code>textmode="number"</code></p>

<p>when I use this:</p>

<pre><code>&lt;asp:TextBox runat="server" TextMode="Number" ID="TextBoxDuration" Width="250"&gt;&lt;/asp:TextBox&gt;
&lt;asp:RequiredFieldValidator ControlToValidate="TextBoxDuration" runat="server" ErrorMessage="Dieses Feld darf nicht leer sein" /&gt;&lt;br /&gt;
&lt;asp:RegularExpressionValidator runat="server" ControlToValidate="TextBoxDuration" validationexpression="((\d+)((\.\d{1})?))$" ErrorMessage="Nur Zahlen" /&gt;
</code></pre>

<p>users can still input the char <code>e</code> and <code>+, -</code></p>

<p>I don't like to use normal Textbox with the same <code>Regularexpressionvalidator</code> (which actually would work)</p>

<p>example:</p>

<p><a href="https://i.stack.imgur.com/AyDbX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AyDbX.png" alt="enter image description here"></a></p>