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:28:52
 
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00571977
Message ID:
00572124
Vues:
21
> 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.

This is exactly what I am trying to avoid.

The problem is that ASP pages have some commands such as INCLUDE. So, assuming a Form.html file has to be included in several pages. So, those ASP pages that need that specific page may have that reference to it. However, from WWC, I may expand a template which may contains that include reference. As this is interpreted by WWC, it won't process the file as ASP so the include won't work. I don't want to be forced to do extra code in WWC just to include other page. Because, if that is the case, whenever I'll expand a template which contains a new include, I'll have to modify my code.
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