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

Click here to load this message in the networking platform