i have two textboxes as to_date and from_date. and i compare both textboxes and get value but it execution goes next to onclick of button that i want to stop because if to_date is less than from date, the to date is become null as well as focus on that textboxes not goes to click event of button.