ASP-Based Profile Sitelet

Location in SDK: SDK\Samples\Classic ASP\Profile Sitelet

The primary goal of the Profile Sitelet is to demonstrate through code how to use the Profiling System in Commerce Server 2002 to create user profiles, set user profile attributes, and to read user profile data using the Profiling System objects.

The Profile 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. Using the sitelet, you can create and modify user profiles, using the AuthManager, ProfileObject, and ProfileService objects. No modification to the code is required to deploy the Profile Sitelet to a server running Commerce Server 2002.

Similar functionality to that found in the ASP-Based Profile Sitelet can be found in the ASP.NET-Based Profile Sitelet. For more information, see ASP.NET-Based Profile Sitelet.

Best coding practices are maintained in this sample, and the code represents the prescribed method of using the object model.

Installing the ASP-Based Profile Sitelet

You unpack the Profile Sitelet using Commerce Server Site Packager. The package file for the ASP version of the Profile Sitelet is located in the following directory:

<drive>:\Program Files\Microsoft Commerce Server 2002\SDK\Samples\Classic ASP\Profile Sitelet\SDK-PROFILE-SITELET.PUP

Use the following procedure to install the Profile Sitelet on one computer using the Quick mode in Site Packager.

Unpacking the ASP-based Profile Sitelet using the Custom unpack option and creating independent databases for each of the site resources is not recommended.

To unpack the ASP-Based Profile Sitelet

  1. In Windows Explorer, navigate to the directory containing either the ASP or the ASP.NET version of the sitelet, as described above.

  2. Click the SDK-PROFILE-SITELET.PUP icon.

  3. In the Unpack screen, select Quick Unpack, and then click Next.

  4. 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.

  5. 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.

  6. In the Profiling System screen, accept the defaults, and then click Next.

  7. In the second Profiling System screen, accept the defaults, and then click OK.

  8. After the unpacking is complete, a dialog box appears with the message "Unpacking is complete!". Click Finish.

  9. In Internet Explorer, in the Address box, type HTTP: //<computer name>/ProfileSitelet to open the sitelet.

See Also

Service Pack 2 Changes for Sitelets

Copyright © 2005 Microsoft Corporation.
All rights reserved.