title: Selectively applying validation on textboxes with C# asp.net
body: <p>I am working with C#, asp.net 3.5. I have a dropdown list which has values like:</p>
  
  <pre><code>Pick last 24 hrs data
  Pick last 48 hrs data
  Pick data between dates
  </code></pre>
  
  <p>When I select <code>Pick data between dates</code> it shows two textboxes where user can set "From Date" and "To Date"</p>
  
  <p>I want to apply a validation that if user selects <code>between dates option</code>, dates' textboxes must be filled, for other dropdown values textboxes' values don't need to be checked.</p>
  
  <p>Should I do it through jquery/javascript (which I am already doing) Or is there a way to achieve this by using existing validation controls ? </p>