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:47:23
 
 
À
23/10/2001 12:22:41
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00571977
Message ID:
00572131
Vues:
34
>>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
>
>
The problem with that is that you have to know the page. In my case, the include references varies from pages to pages. And, if I add a specific include file in a template, I'll have to modify my code.

So far, the only thing I can see which would solve this is to modify base WWC expand template to STRTRAN any include references and to the insert process on its own. However, this might work for the include command but what about any other ASP command. I thought WWC was able to return ASP pages. But, I'm not sure how to do it.
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