Check this
<pre lang="xml"><asp:TextBox ID="txtCurrencey" runat="server" MaxLength="5"></asp:TextBox>
<asp:RegularExpressionValidator ID="rgfldvalidator" ControlToValidate="txtCurrencey"
runat="server" ErrorMessage="Please enter the numbers only" ValidationExpression="^[0-9]*\.?[0-9]+$">
</asp:RegularExpressionValidator>