XmlFormView.SubmitToHost Event

Handles the submit to host event of a form in a XmlFormView control.

Namespace:  Microsoft.Office.InfoPath.Server.Controls
Assembly:  Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)


Public Event SubmitToHost As EventHandler(Of SubmitToHostEventArgs)
Dim instance As XmlFormView
Dim handler As EventHandler(Of SubmitToHostEventArgs)

AddHandler instance.SubmitToHost, handler
public event EventHandler<SubmitToHostEventArgs> SubmitToHost


This event represents one of four events of the XmlFormView control that allows communication of a form in the control to the Web page in which the control is hosted. Read-only properties of the form can be queried when the form is submitted to the hosting Web page. These properties are available through the XmlForm property of the XmlFormView control.


In the following example, the ReturnStatus property of the SubmitToHostEventArgs object is displayed in a text box located on the Web page.

Protected Sub XmlFormView1_SubmitToHost(ByVal sender As Object, ByVal e As Microsoft.Office.InfoPath.Server.Controls.SubmitToHostEventArgs) Handles XmlFormView1.SubmitToHost
    TextBox11.Text = e.ReturnStatus.ToString()
End Sub
protected void XmlFormView1_SubmitToHost(object sender, SubmitToHostEventArgs e)
    TextBox11.Text = e.ReturnStatus.ToString();

See Also


XmlFormView Class

XmlFormView Members

Microsoft.Office.InfoPath.Server.Controls Namespace