I created a TextBox and CompareValidator, below which, as I thought, allowed input in the following forms:
Unfortunately, this does not allow the dollar sign version in it. What is the point of doing a type check against a currency if you have not allowed a dollar sign? Is there any way to enable this character?
<asp:TextBox ID="tb_CostShare" runat="server" Text='<%# Eval("CostShare", "{0:$0.00}")%>' CausesValidation="true" /> <asp:CompareValidator ID="vld_CostShare" runat="server" ControlToValidate="tb_CostShare" Operator="DataTypeCheck" Type="Currency" ValidationGroup="vld" ErrorMessage="You must enter a dollar amount for 'Cost Share'." />
Abe miessler
source share