Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ExpandTemplate() way of doing things
Message
From
20/10/2001 23:49:25
 
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00571366
Message ID:
00571399
Views:
27
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform