ASP-Based Catalog Sitelet
Location: SDK\Samples\Classic ASP\Catalog Sitelet
The primary goal of the Catalog Sitelet is to demonstrate how to use the Catalog object model to browse and search a product catalog, providing you with a functional example of the catalog API in action.
The Catalog Sitelet consists of a package file, which you unpack using Commerce Server Site Packager. The source code for the sitelet is included in this package. You can deploy the sitelet to a server running Commerce Server 2002 without the need for code modifications. After the Catalog Sitelet has been deployed, you can use it to browse and search a sample catalog.
The Catalog Sitelet demonstrates the two query mechanisms supported by the Catalog object model, and also demonstrates using the Catalog object model to provide catalog browsing functionality.
Similar functionality to that found in the ASP-Based Catalog Sitelet can be found in the ASP.NET-Based Catalog Sitelet. For more information, see ASP.NET-Based Catalog Sitelet.
Best coding practices are maintained in this sample, and the code represents the prescribed method of using the object model.
ASP-Based Catalog Sitelet Code Notes
Installing the ASP-Based Catalog Sitelet
ASP-Based Catalog Sitelet Code Notes
This sitelet demonstrates multilingual functionality. The following languages are supported: English, French, German, and Japanese. The ASP sitelets set the language character sets in the Main routine of several ASP pages using code such as the following:
Sub Main()
Set g_ojbMsgMgr = Application ("MSCSMessageManager")
Response.CharSet = "iso-8859-1"
End Sub
Notes
- MessageManager object entries are read from the file Rc.xml.
- The catalog for this sitelet is both multilingual and multicurrency.
Installing the ASP-Based Catalog Sitelet
You unpack the Catalog Sitelet using Commerce Server Site Packager. The package file for the ASP version of the Catalog Sitelet is located in the following directory:
<drive>:\Program Files\Microsoft Commerce Server 2002\SDK\Samples\Classic ASP\Catalog Sitelet\SDK-CATALOG-SITELET.PUP
Use the following procedure to install the Catalog Sitelet on one computer using the Quick mode in Site Packager.
Unpacking the ASP-based Catalog Sitelet using the Custom unpack option and creating independent databases for each of the site resources is not recommended.
To unpack the ASP-Based Catalog Sitelet
In Windows Explorer, navigate to the <drive>:\Program Files\Microsoft Commerce Server 2002\SDK\Samples\Classic ASP\Catalog Sitelet directory.
Click the SDK-CATALOG-SITELET.PUP icon.
In the Unpack screen, select Quick Unpack, and then click Next.
In the Quick Unpack screen, ensure that the SQL Server computer name is correct, enter the SQL Server login name and password, and then click Next.
In the Commerce Server Site Packager window recommending Windows Authentication, click OK.
By default, the sitelets do not work with Windows Authentication. For more information about configuring the sitelets to work with Windows Authentication, see step 6 in Deploying Commerce Server Using Windows Authentication.
In the Profiling System screen, accept the defaults, and then click Next.
In the second Profiling System screen, accept the defaults, and then click OK.
After the unpacking is complete, a dialog box appears with the message "Unpacking is complete!". Click Finish.
In Internet Explorer, in the Address box, type HTTP: //<computer name>/CatalogSitelet to run the sitelet.
See Also
Service Pack 2 Changes for Sitelets
Copyright © 2005 Microsoft Corporation.
All rights reserved.