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

Click here to load this message in the networking platform