modika11
Programmer
- Jan 31, 2008
- 20
Hi All
i have:
when i submit the form (with valid items say 1.1 or 1.0) then the client script validates the text and allows the postback but the server side Page.Isvalid always has a problem with these values and doesnt matter what i put in it always raises the validator???
What have i done wrong?
Rob
i have:
Code:
<label for="txtProductHeight">Height:</label>
<asp:TextBox ID="txtProductHeight" runat="server" MaxLength="10" Columns="5" CssClass="styled"></asp:TextBox> mm
<asp:CompareValidator ID="CompareValidator1" runat="server"
ErrorMessage="* Height must be a number" ControlToValidate="txtProductHeight"
Display="Dynamic" Type="Double"></asp:CompareValidator>
when i submit the form (with valid items say 1.1 or 1.0) then the client script validates the text and allows the postback but the server side Page.Isvalid always has a problem with these values and doesnt matter what i put in it always raises the validator???
What have i done wrong?
Rob