title: MVC Remote validation not working
body: <p>I have a few remote validations to make for client side validation.  Two of them are almost identical, but one works and the other doesn't, the break point never gets hit.</p>
  
  <p><strong>Working One:</strong></p>
  
  <p>View:</p>
  
  <pre><code>@Html.EditorFor(model =&gt; model.ClassNumber, new { @id = "ClassNumber" })
  @Html.ValidationMessageFor(model =&gt; model.ClassNumber)
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>[EdmScalarPropertyAttribute(EntityKeyProperty = false, IsNullable = false)]
  [Required(ErrorMessage = "Required")]
  [Remote("CheckClassNumber", "Course", AdditionalFields = "Title", HttpMethod = "POST",
      ErrorMessage = "Already Exists")]
  [DataMemberAttribute()]
  public global::System.Int32 ClassNumber
  {
  </code></pre>
  
  <p>Method:</p>
  
  <pre><code>[HttpPost]
  public JsonResult CheckClassNumber(int ClassNumber, int Title)
  {
      var course = db.Courses.Any(c =&gt; c.ClassNumber.Equals(ClassNumber) &amp;&amp; c.Title.Equals(Title));
  
      return Json(!course);
  }
  </code></pre>
  
  <p>Source Code:</p>
  
  <pre><code>    &lt;select class="chzn-select" data-placeholder=" -- Select Course -- " data-val="true" data-val-number="The field Title must be a number." data-val-required="Required" id="Title" name="Title"&gt;
          &lt;option value=""&gt;&lt;/option&gt;
          &lt;option value="1"&gt;Option 1&lt;/option&gt;
          &lt;option value="2"&gt;Option 2&lt;/option&gt;
          &lt;option value="3"&gt;Option 3&lt;/option&gt;
      &lt;/select&gt;
      &lt;span class="field-validation-valid" data-valmsg-for="Title" data-valmsg-replace="true"&gt;&lt;/span&gt;
  </code></pre>
  
  <p><strong>Not Working One</strong></p>
  
  <p>View:</p>
  
  <pre><code>@Html.DropDownListFor(model =&gt; model.Student,
      @ViewBag.StudentID as SelectList, "",
      new { @class = "chzn-select", data_placeholder = " -- Select Student -- " })
  @Html.ValidationMessageFor(model =&gt; model.Student)
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>[EdmScalarPropertyAttribute(EntityKeyProperty = false, IsNullable = false)]
  [Required(ErrorMessage = "Required")]
  [Remote("CheckIfEnrolled", "Enrollment", AdditionalFields = "Course", HttpMethod = "POST",
      ErrorMessage = "Already Enrolled")]
  [DataMemberAttribute()]
  public global::System.Int32 Student
  {
  </code></pre>
  
  <p>Method:</p>
  
  <pre><code>[HttpPost]
  public JsonResult CheckIfEnrolled(int Student, int Course)
  {
      var exists = db.Enrollments.Any(e =&gt; e.Course.Equals(Course) &amp;&amp; e.Student.Equals(Student));
  
      return Json(!exists);
  }
  </code></pre>
  
  <p>Source Code:</p>
  
  <pre><code>&lt;select class="chzn-select" data-placeholder=" -- Select Student -- " data-val="true" data-val-number="The field Student must be a number." data-val-remote="Already Enrolled" data-val-remote-additionalfields="*.Student,*.Course" data-val-remote-url="/QIEducation/Enrollment/CheckIfEnrolled" data-val-required="Required" id="Student" name="Student"&gt;
      &lt;option value=""&gt;&lt;/option&gt;
      &lt;option value="8"&gt;Option 1&lt;/option&gt;
      &lt;option value="10"&gt;Option 2&lt;/option&gt;
      &lt;option value="11"&gt;Option 3&lt;/option&gt;
  &lt;/select&gt;
  &lt;span class="field-validation-valid" data-valmsg-for="Student" data-valmsg-replace="true"&gt;&lt;/span&gt;
  </code></pre>
  
  <p>I have made sure that the scripts are loaded in the correct order.  The additional fields are typed correctly.  There are no errors coming up in the debug or looking at the source code.  I have looked around and the solutions for similar problems are already implemented.</p>