Share via


Step 6: Create a New User Using Visual Studio .NET

In Commerce Server Business Desk Profiles, you use the Users module to create, find, and update user profile information, such as assigning a user a new password. You use the Profile Definition Designer module to update the types of information you collect on your Web site.

The profile definition consists of profile properties, attributes, and optionally, site terms. Profile properties are the characteristics that specify the profile data to be collected, and each profile property has attributes. Attributes provide information about the property, such as, the data type of the property. For example, number, text, decimal, and site term. Attributes also provide information if the property is single-valued (for example, only one First Name is allowed), multi-valued, or indexed. The indexed attribute lets a user visiting the Web site to perform a search using the given property.

In this step you will add a new user using the Visual Studio .NET Integrated Commerce Server 2002 Components.

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

  • If you have changed the properties in the User Object profile, your New User screen may not contain the same properties that are shown in this procedure.
  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 Business Desk.
  5. In Profiles, click Users.
  6. In the User Object screen, click New on the toolbar.
  7. In the New User Object screen, in the General information section, do the following:
    Use this To do this
    Logon name Type Mark.
    User password Type password as the password for the new user.
    E-mail Type mark.lee@microsoft.com.
    User type Select Registereduser from the drop-down list.

    Typically, you will only create registered users.

    User title Type Mr.
    Last name Type Lee.
    First name Type Mark.
    Telephone number Type 425-555-5555.
    Telephone extension Leave this blank.
    Fax number Leave this blank.
    Fax extension Leave this blank.
    Default Language Select English from the drop-down list.
    Gender Select Male from the drop-down list.
    User Description Select Contractor / Commercial Business from the drop-down list.
  8. In the Account Info section, do the following:
    Use this To do this
    Organization ID Leave this blank.
    Account status From the drop-down list, specify Active Account.

    The default status is Active Account. Users with inactive accounts are not able to log in to your site.

    User catalog set From the drop-down list, select Registered User Default CatalogSet.

    This option limits the user Mark to ordering from the selected catalog set.

  9. In the Partner Service section, do the following:
    Use this To do this
    Partner service role flags From the drop-down list, select Normal User.
  10. To save the new user profile and return to the User Object screen, click Save and go back on the toolbar.

The new user profile is saved.

Copyright © 2005 Microsoft Corporation.
All rights reserved.