I have debugged my XForm-code and can see that this code runs:
public void XForm_ControlSetup(object sender, EventArgs e)
XFormControl control = (XFormControl)sender;
control.BeforeLoadingForm += new LoadFormEventHandler(XForm_BeforeLoadingForm);
control.ControlsCreated += new EventHandler(XForm_ControlsCreated);
control.BeforeSubmitPostedData += new SaveFormDataEventHandler(XForm_BeforeSubmitPostedData);
control.AfterSubmitPostedData += new SaveFormDataEventHandler(XForm_AfterSubmitPostedData);
However, when I click the send-button, the method that is bound to the SaveFormDataEventHandler isn't executed.
Instead the page is loaded again and the XForm_ControlSetup-method, XForm_BeforeSubmitPostedData(object sender, SaveFormDataEventArgs e)-method etc, runs again.
How do I solve this?Thanks!
Here is the solution:
"If XForm_AfterSubmitPostedData is never triggered this is probably because the SMTP settings is wrong in web.config(!!?)."
you can also check to make sure that you are allowed to submit the form multiple times. This is done in the xform editor.