Hi all
I have a form with some fields on it and at the end i have a datagrid control to display the result on the same page. the form contains two date controls namely FromDate and ToDate. now i need to validate these controls such as ToDate should not be less than FromDate. I have the script for it. but the problem is as the datagrid is on the same page and if I just want to see the results without inserting data in to the fields the form is requested and validation is performed which shows the error message regarding dates. My question is how to validate the page where one part of the form is for adding and the other part is for displaying results. for the datagrid i select some input and click on a button then the page is refreshed and at the same time the above fromDate and toDate fields get validating errors.
how to solve this.........hope you understood the scenario..........