title: Best way to validate currency input?
body: <p>I have created the TextBox and CompareValidator below which I thought would allow input in the following forms:</p>
  
  <ul>
  <li>5</li>
  <li>5.00</li>
  <li>$5.00</li>
  </ul>
  
  <p>Unfortunately it's not allowing the version with the dollar sign in it.  What is the point of doing a type check against currency if you don't allow the dollar sign?  Is there a way to allow this symbol?</p>
  
  <pre><code>            &lt;asp:TextBox ID="tb_CostShare" runat="server" Text='&lt;%# Eval("CostShare", "{0:$0.00}")%&gt;' CausesValidation="true" /&gt;
              &lt;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'." /&gt;    
  </code></pre>