Microsoft KB Archive/295638

= PRB: Click URLs for Ads Do Not Function When Site Is in URL Mode or Cookies Are Turned Off =

Article ID: 295638

Article Last Modified on 10/22/2003

-

APPLIES TO


 * Microsoft Commerce Server 2002 Standard Edition
 * Microsoft Commerce Server 2000 Standard Edition

-



This article was previously published under Q295638



SYMPTOMS
Click URLs that typically take the customer to a certain category or product page do not function.



CAUSE
If a customer's computer has cookies turned off, or if a Commerce Solution Site is in URL mode, an MSCSProfile ticket is appended to the customer's URL. The ASP script in Banner.inc returns an advertisement that has no ticket on the URL.



RESOLUTION
To permit advertisements to append a ticket to the URL, follow these steps:  Install the Resource Kit, and then run the TemplateCreator.exe file. Select the site that you want the ads to display in.  Add an attribute named mscsprofile to the image template, as follows:        Label= mscsprofile Source = contextprofile NOTE: Do not set the type so that it does not show up in the Bizdesk.

  Right-click the image template, and then click template text. After the URL, type %26{%mscsprofile%}. The resulting code resembles the following:  </li>  Change Banner.inc as follows: Dim oCSO, Ads, Ad, oUserProfile, bcookie If IsEntityInSet(sThisPage, MSCSPageSets.AdvertisementPageSet) Then

Set oCSO = Server.CreateObject(&quot;Commerce.ContentSelector&quot;) 'oCSO.Size = &quot;Banner&quot; oCSO.Border = 1 oCSO.TargetFrame = &quot;_top&quot; oCSO.NumRequested = 1 if m_iTicketLocation = 1 Then bCookie = False Else bCookie = True End If   if bCookie = False then oCSO.MSCSProfile = GetTicketInUrlArg else end if   Set oUserProfile = GetCurrentUserProfile If Not oUserProfile Is Nothing Then Set oCSO.UserProfile = oUserProfile End If   Set Ads = oCSO.GetContent( Application(&quot;CSFAdvertisingContext&quot;) ) For Each Ad In Ads Response.Write(Ad) Next End If

</li></ol>

Keywords: kbprb KB295638

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.