<% ' ============================================================================= ' account.asp ' Account management for individual customers. ' ' Commerce Server 2000 Solution Sites 1.0 ' ----------------------------------------------------------------------------- ' This file is part of Microsoft Commerce Server 2000 ' ' Copyright (C) 2000 Microsoft Corporation. All rights reserved. ' ' This source code is intended only as a supplement to Microsoft ' Commerce Server 2000 and/or on-line documentation. See these other ' materials for detailed information regarding Microsoft code samples. ' ' THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY ' KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE ' IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A ' PARTICULAR PURPOSE. ' ============================================================================= Sub Main() Dim sAction, sSubAction, sProfileIDs Dim iProfileCount Dim listProfileSchema Dim sPreviousAction Dim bValidPostedValues, bDisplayPostedValues Call EnsureAuthAccess() Call InitializePartnerDesk(sAction, sSubAction, sProfileIDs) If IsNull(sAction) Then sAction = EDIT_ACTION If IsNull(sSubAction) Then sSubAction = EDIT_ACTION If Not IsNull(sProfileIDs) Then Call CheckIfProfilesExist(sSubAction, sProfileIDs) ' Making sure that the current user can only see his own profile. Even ' tweaking the profile IDs posted to this page, the user should not ' be able to see the profile details of other users. sProfileIDs = m_UserID ' Get this page content Select Case sAction Case EDIT_ACTION Call PrepareEditAction(sSubAction, sProfileIDs, iProfileCount, listProfileSchema) htmPageContent = htmEditAction(sAction, sSubAction, sProfileIDs, iProfileCount, listProfileSchema) Case CHANGE_ACTION Call PrepareSaveChangesConfirmation(sSubAction, sPreviousAction, _ listProfileSchema, bValidPostedValues, bDisplayPostedValues) htmPageContent = htmChangePasswordActionHandler(sAction, sSubAction, sProfileIDs, _ sPreviousAction, listProfileSchema, bValidPostedValues, bDisplayPostedValues) Case SAVE_ACTION Call PrepareSaveAction() htmPageContent = htmSaveActionHandler(sAction, sSubAction, sProfileIDs) Case Else Response.Redirect(GenerateURL(MSCSSitePages.BadAction, Array(), Array())) End Select End Sub %>