Test Drive Samples
Get It 4 Free!
Component ASP Samples
The files for this example are DualDisplay.asp and demo.mdb. The latter file is an MS Access 97 database, that holds a single table named Products. The table holds a product description and a price in Euro, which the script then displays in ATS (you can change this easily; especially interesting for sites with personalization to give customers the ability the get a quote in their preferred currency). Also demonstrates the use of DSN-less connections.
Background: The Maastricht treaty requires merchants to display monetarian values in Euro and local currency ("dual display") until the Euro finally is the single currency.
Euro Conversion Calculator
This is the sibling of the Conversion Application that comes with the Visual Basic examples. It allows you to convert to Euro as well as perform triangulation calculations with exchange rates or currency symbols. The corresponding ASP file is EuroCalculator.asp.
The GetRates.asp page retrieves the exchange rates for all EMU currencies from the component.
If you have existing monetary values and want to correctly round them (two digits), then use the Round method provided by the component. The Rounding.asp sample shows you how to use it.