Show All

# href Attribute (useHttpHandler Element)

Specifies the Uniform Resource Locator (URL) to which the form should be submitted.

## Type

    xsd:anyURI

## Remarks

The href attribute is a required attribute of the useHttpHandler element.

## Example

The following is an example of the href attribute as it is used by the useHttpHandler element:

    <xsf:submit
       caption="Su&amp;bmit"
       disableMenuItem="no"
       onAfterSubmit="KeepOpen"
       showStatusDialog="yes"
       showSignatureReminder="yes">
       <xsf:useHttpHandler>
          href="http://MyServer/InfoPathScripts/MyScript.asp"
          method="POST"
       </xsf:useHttpHandler>
       <xsf:successMessage>Submit was successful.</xsf:successMessage>
       <xsf:errorMessage>Submit was not successful.</xsf:errorMessage>
    </xsf:submit>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp