title: How to use validation group in 'MVC' razor
body: <p>Form contains two buttons, I need to apply required field validation on 'productID' TextBox if click Search button.Similarly apply required field validation on 'Productname' &amp; 'Description TextBox onclick Submit.
  View Code :</p>
  
  <pre><code>Enter Product No :                       
  @Html.TextBoxFor(Model =&gt; Model.productID)
  &lt;input type="submit" value="Search" name="action" /&gt;
  Product Name :                                                                                                                                                                                                                                                                                           
  @Html.TextBoxFor(Model =&gt; Model.Productname)
  Product Description :
  @Html.TextBoxFor(Model =&gt; Model.Description)
  
  &lt;input type="submit" value="Submit" name="action" /&gt; 
  </code></pre>