I am working with C#, asp.net 3.5. I have a dropdown list which has values like:
Pick last 24 hrs data
Pick last 48 hrs data
Pick data between dates
When I select Pick data between dates
it shows two textboxes where user can set "From Date" and "To Date"
I want to apply a validation that if user selects between dates option
, dates' textboxes must be filled, for other dropdown values textboxes' values don't need to be checked.
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 ?