Previous in Contents Next in Contents

DataFunctions Object Overview

The DataFunctions object is usually created in the Global.asa file. Use the Active Server Pages (ASP) Server object's CreateObject method to create a DataFunctions object, as follows:

Set MSCSDataFunctions = Server.CreateObject("Commerce.DataFunctions")
MSCSDataFunctions.Locale     = &H0409

Also in Global.asa, store the new object in the Application object, as follows:

Set Application("MSCSDataFunctions") = MSCSDataFunctions

Because the Page object's Request methods rely on the DataFunctions object for its implementation of these methods, you must create the DataFunctions object before you create a Page object.

The DataFunctions object supports methods that make it possible to perform locale-based data type conversions and value range validation on values submitted to your site, or submitted by your site to the OPP or the site's database.

This object's methods fall into two categories:


© 1997-2000 Microsoft Corporation. All rights reserved.