Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ExpandTemplate() way of doing things
Message
 
À
20/10/2001 18:45:30
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00571366
Message ID:
00571387
Vues:
31
I agree that the cookie header manipulation is cumbersome.

What I have done in these instances is to use STRTRAN to write the HTML cookie code into the template. You could use:
 lcWholeShebang=o.ExpandTemplate(lcPageName, lcContentType, llTemplateString, .T.)
lcWholeShebang=STRTRAN(lcWholeShebang,PlaceHolder,lcCookieString)
Response.Write(lcWholeShebang)
In fact, I use this technique for everything ExpandTemplate does.

HTH

>>You can create a separate header object, then pass that in to ExpandTemplate as a parameter (see lvContentType below, from the docs for ExpandTemplate):
>>
>>o.ExpandTemplate(lcPageName, lcContentType, llTemplateString, llNoOutput)
>>
>>lvContentType
>>Optional - Either an wwHTTPHeader object or content type string. See wwHTTPHeader class for info.
>>
>
>Yes, I know. This doesn't help. As a header is still created. On the second call to ExpandTemplate(), another header will be created. Or, even if I call it only once, what if I have to add a cookie after I did the call. I'll face the same situation.
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform