AppFrameWork.VerifyWith

Ee824838.c++_on(en-US,CS.10).gifEe824838.vb_off(en-US,CS.10).gif

Use this method to generate hidden input fields that contain verification values.

Definition

Function VerifyWith(pdispOrder As ObjectpParams As Variant) As Variant

Parameters

pdispOrder

An object reference to the OrderForm object that contains the fields to verify.

pParams

A variable list of arguments of type VARIANT, that contain the field names to verify in the supplied OrderForm object. 

Return Values

If this method completes successfully, it returns a Variant that contains the HTML tags.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

Use this method to output HTML tags in the form <INPUT TYPE="HIDDEN"> in an HTML form. These hidden fields contain specified values from the OrderForm object to be used to verify that an order has not been altered between presentation of the OrderForm object and final purchase.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

' oAppFrameWork is a Commerce.AppFrameWork object.
' The following example generates hidden fields containing 
' the values stored in the _total_total,and _tax_total fields
' of the supplied OrderForm object:
<FORM METHOD="POST"
    ACTION="https://example.microsoft.com/xt_orderform_purchase.asp">
    <% = oAppFrameWork.VerifyWith(mscsOrderForm, "_total_total", _
 "_tax_total") %>
' When the page containing this call is loaded in the client 
' browser, the document source for the page would contain the
' following HTML script (assuming a total of 138.95 and a tax
' of 8.75):
<FORM METHOD="POST"
ACTION="https://example.microsoft.com/xt_orderform_purchase.asp">
<INPUT TYPE=HIDDEN NAME="_VERIFY_WITH" VALUE="_total_total=13895">
<INPUT TYPE=HIDDEN NAME="_VERIFY_WITH" VALUE="_tax_total=875">

See Also

AppFrameWork Object

OrderForm Object


All rights reserved.