>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.