I'm trying to use an InfoPath 2007 browser form hosted in an ASP.NET page, using the SubmitToHost method of submitting the form.
Are you forced to always use the InfoPath Form submit button, instead of a submit button on the host page? I want to use the latter, but still have the form exhibit all the same form-submission behaviors of the InfoPath submit button. In other words, when I have the button on the InfoPath form page, the form cannot be submitted while the data is invalid (built in feature of InfoPath forms). But if I use a submit button in the host page, I lose that feature -- the form can still be submitted with bad data. I still get the visual indicators that the data is not valid, but I'm not prevented from submitting the form. Also, when the host page submit button is used, the SubmitToHost() method is not fired.