I want to create a "Submit" button that print the form and submits the data to a database at the same time but only if certain conditions are true. I have created a button in the form with an "OnClick(Eventobj) using the code XDocument.PrintOut(); and XDocument.Submit(); but this method does not verify to the user that the data ...