mchoudhury
Programmer
Hi guys,
i have this reqular expression in my code where if a uaer enters anything that is not numeric and an error should be shown:
<asp:regularexpressionvalidator id="expression1" runat="server" ValidationExpression="\d*$" ControlToValidate="LocalDay" text="*" Errormessage="Please only enter numeric numbers in Local Daytime box"></asp:regularexpressionvalidator>
At the moment it also does not allow me to insert value like 1.0, 23.0, 45.6776 basicall it does not allow any decimal value.
Any idea how i could amend the validation so any values afterthe (.) will be allowed to be inserted
Thanks
Mac
i have this reqular expression in my code where if a uaer enters anything that is not numeric and an error should be shown:
<asp:regularexpressionvalidator id="expression1" runat="server" ValidationExpression="\d*$" ControlToValidate="LocalDay" text="*" Errormessage="Please only enter numeric numbers in Local Daytime box"></asp:regularexpressionvalidator>
At the moment it also does not allow me to insert value like 1.0, 23.0, 45.6776 basicall it does not allow any decimal value.
Any idea how i could amend the validation so any values afterthe (.) will be allowed to be inserted
Thanks
Mac