Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASP functionalities in a page returned by WWC
Message
 
À
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:
00572100
Vues:
37
>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 an oHTML object that I create in my wwServer class. I've added methods to this object that let me evaluate templates and scripts and include them into other pages. It's pretty simple code, actually. In your template or script page the code to include other files would look like:
< %= Server.oHTML.GetPage('MyPage.WC') % >
< some other HTML code >
< %= Server.oHTML.GetPage('MyPage2.WCS') % >
I also put all of my generic HTML rendering routines here so that I can use them in any page.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform