ASP.NET Validate text box that already has a value in it
I have a text box that displays the total cost of the shopping cart. When the page loads the value in the shopping cart is set at 0.00. When a user adds an item to the cart the textbox automatically displays the new total

How can I validate this text box to stop someone clicking on the buy button and therefore purchase items with the value of 0.00??

I tried using a compare validator but it was a mess!

asp:CompareValidator ID="cprPriceTotalCost" runat="server" Display="Dynamic" ControlToValidate="tbxPriceTotalCost" Operator="GreaterThan"
Type="Currency" ValueToCompare="0.00"

Thank you in advance for any help


ASP.NET Validate text box that already has a value in it
===

I have a text box that displays the total cost of the shopping cart. When the page loads the value in the shopping cart is set at 0.00. When a user adds an item to the cart the textbox automatically displays the new total

How can I validate this text box to stop someone clicking on the buy button and therefore purchase items with the value of 0.00??

I tried using a compare validator but it was a mess!

asp:CompareValidator ID="cprPriceTotalCost" runat="server" Display="Dynamic" ControlToValidate="tbxPriceTotalCost" Operator="GreaterThan"
Type="Currency" ValueToCompare="0.00"

Thank you in advance for any help

