Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ExpandTemplate() way of doing things
Message
De
20/10/2001 23:49:25
 
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00571366
Message ID:
00571399
Vues:
28
>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.

Excellent approach, what about this:
lcHtml=o.ExpandTemplate(lcPageName, lcContentType, llTemplateString, .T.)
lcContentTypeHeader='Whatever you want to add as a header'
lcHtml=STRTRAN(lcHtml,CHR(10)+CHR(10),CHR(10)+lcContentTypeHeader+CHR(10)+CHR(10))
Response.Write(lcHtml)
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform