Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ExpandTemplate() way of doing things
Message
De
22/10/2001 17:10:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00571366
Message ID:
00571868
Vues:
36
>Well, you've gotta consider a template as a thing that already has a header, footer and everything in between. It's quite different that constructing a page using the Response objects HTMLHeader and HTMLFooter (before I figured this out, I was generating two footers on every page).
>
>Since the header's already in there, and you're already embedding VFP code into your templates, the consistent thing to do is to insert VFP expressions into the header as well - including the cookies.
>
>An option I usually use when a user logs in (when I create the session cookie) is to generate a page using HTMLHeader, HTMLFooter and Response.Write - which simply contains a cookie and a 1 second redirect to the desired template (all this page says is 'Restoring Personalized Settings')

I try to avoid those approaches as it created an additional transaction and all that should be processed within one.

I'll have to find something for that workaround.
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