Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP functionalities in a page returned by WWC
Message
From
23/10/2001 12:47:23
 
 
To
23/10/2001 12:22:41
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00571977
Message ID:
00572131
Views:
35
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform