title: rangevalidator rejects wrong values and makes my submit button unresponsive
body: <p>I have a form with a range validator:</p>
  
  <pre><code>&lt;label class="required" for="price"&gt;price&lt;/label&gt;
  &lt;input runat="server" id="price" name="price" type="text"  required="required"/&gt;
  &lt;asp:RangeValidator runat="server" ControlToValidate="price" ErrorMessage="Must be between 0 and 15,000" MinimumValue="0" MaximumValue="15000"&gt;&lt;/asp:RangeValidator&gt;
  </code></pre>
  
  <p>but it rejects values such as '22' and '5' but accepts values '0' and '15,000'. On top of that, it makes my form's submit button unresponsive for all inputs. Why isn't the range validator working?</p>
  
  <p>Edit: Here's the form button</p>
  
  <p></p>
  
  <p>and the submit function that doesn't seem to fire off when I have the rangevalidator. If I remove the rangevalidator, this code executes:</p>
  
  <pre><code>protected void btnSubmit_Click(object sender, EventArgs e)
          {
  
                  formInputs.Visible = false;
                  emailNotification.Visible = true;
  
                  MailMessage mail = new MailMessage();
                  mail.To.Add(emailField.Value);
                  mail.From = new MailAddress("no-reply@gmail.com");
                  mail.IsBodyHtml = true;
                  mail.Subject = "Your Form has been submitted";
                  mail.Body += "Location: ";
                  mail.Body += location.SelectedValue + "&lt;br&gt;";
                  mail.Body += " address: ";
                  mail.Body += address.Value + "&lt;br&gt;";
  
                  mail.Body += "price: " + price.Value + "&lt;br&gt;";
                  mail.Body += "Date submitted: " + todaysDate.Value + "&lt;br&gt;";
                  if (FileUploadControl.HasFile)
                  {
  
                      string filename = Path.GetFileName(FileUploadControl.FileName);
                      FileUploadControl.SaveAs(Server.MapPath("~/") + filename);
  
                      mail.Attachments.Add(new Attachment(HttpContext.Current.Request.MapPath(filename)));
                  }
                  SmtpClient smtp = new SmtpClient(System.Configuration.ConfigurationManager.AppSettings["mailsetting"]);
                  smtp.Send(mail);   
  }     
  </code></pre>