I have used RequiredFieldValidator to make sure the user enters all the information. I have defined a function for the onClick event of the button. In this function I am doing the tasks of writing the information to the database. Now the issue I am coming across is:<BR><BR>1. The event is fired even if the validation fails.<BR>2. If I add &#039;CausesValidation=true&#039; to the button tag and check the Page.IsValid property in the function that writes to the db the property returns false.<BR><BR>How can I make sure that the form is valid before writing the contents to the database