Page.VerifyWith
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 and final purchase. When the order form is submitted, the ProcessVerifyWith method on the target page stores these fields in a Dictionary object in the OrderForm, which is then passed to the Order Processing pipeline (OPP). One of the objects in the pipeline compares the original values with the values from the hidden fields.
Important
- This method is included for backwards compatibility with Site Server 3.0 Commerce Edition. See the AppFrameWork object, which provides similar functionality to that found in this method. Using the AppFrameWork methods is the preferred way of adding this type of functionality to your site, and will ensure better compatibility with future versions of Microsoft Commerce Server.
Definition
Function VerifyWith(pdispOrder As Object
pbstrArguments As String) As String
Parameters
pdispOrder
An object reference to the OrderForm object that contains the fields to verify.
pbstrArguments
A String that contains a comma-separated list of field names in the supplied OrderForm object to verify. This parameter is optional.
Return Values
If this method completes successfully, it returns a String 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
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
Example
' oPage is a Commerce.Page 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="<% = oPage.SURL("xt_orderform_purchase.asp") %>">
<% = mscsPage.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">