Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASP functionalities in a page returned by WWC
Message
De
23/10/2001 12:22:41
 
 
À
23/10/2001 01:46:30
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00571977
Message ID:
00572117
Vues:
27
>When a page is returned by WWC, we loose the ability to benefit of ASP functionalities. For example, whatever is pulled from an ASP page on the Web site can include commands such as INCLUDE. However, that same INCLUDE command won't work if the page is generated by WWC. So, I have to paste all my code from that page into the page which has to be generated. Then, when I want to make a change in that included page, I have to think of also doing it where I pasted the code.
>
>Is there a way to avoid that?

I have a subclass of the wwResponse object that I use in each WWWC project. This subclass contains custom methods that are specific to the project that return chunks of HTML that might be common across pages. This allows me to do things like:

Response.CreateMenu()
Response.PageFooter()

or any number of things in between. You can abstract that even further by storing your HTML chunks in htm files, and having your custom Response methods do something like:
FUNCTION CreateMenu
  THIS.Write(FILETOSTR("mymenu.htm"))
ENDFUNC
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform