Step 5: Link the Site Terms Using Visual Studio .NET

After you create new site terms using the Business Desk, you link them to user properties in the Commerce Server Profiles System using Visual Studio .NET.

  1. Click Start, point to Programs, point to Microsoft Visual Studio .NET, and then click Microsoft Visual Studio .NET.

  2. In the Microsoft Development Environment [design] – Start Page screen, click Open Project.

  3. In the Open Project dialog box, select the NorthwindTraders project, and then click Open.

  4. In the NorthwindTraders – Microsoft Visual C# .NET [design] – Default.aspx window, click Project on the toolbar, point to Commerce Server Project, and then select Profile Definition Designer.

  5. In the Profiles screen, select the User Object from the list, and then click Open on the Business Desk toolbar.

  6. In the Properties list, expand General Information, and then select Gender from the list.

  7. In the Attributes section, do the following:

    Use this To do this
    Type Select the Site Term property type from the drop-down list.
    Type reference Click the ellipsis Ellipsis button to open the Site Term Selection dialog box.
  8. In the Site Term Selection -- Web Page Dialog dialog box, expand User Site Terms, expand Personal Info, select Gender from the list, and then click OK.

  9. In Custom Attributes section, select sUserAccess from the list, click Edit, and change the Value to 1.

    Ee824683.note(en-US,CS.20).gifNote

    • The sUserAcess custom attribute specifies registered user access to the property in the Customer Service page of the Web site. The value options for this custom attribute are as follows:

      0 = Hide from registered users

      1 = Read only

      2 = Editable

  10. Click Accept, and then click Apply.

  11. In the Properties list, under General Information, select User Description.

  12. In the Attributes section, do the following:

    Use this To do this
    Type Select the Site Term property type from the drop-down list.
    Type reference Click the ellipsis Ellipsis button to open the Site Term Selection dialog box.
  13. In the Site Term Selection -- Web Page Dialog dialog box, expand User Site Terms, expand Personal Information, select User Description from the list, and the click OK.

  14. In Custom Attributes section, select sUserAccess from the list, click Edit, and change the Value to 1.

  15. Click Accept, and then click Apply.

  16. Click Save and go back on the toolbar.

  17. Perform an IIS Reset.

To verify that your changes are saved correctly, go back and view the User Object using Commerce Server Manager.

Copyright © 2005 Microsoft Corporation.
All rights reserved.