Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combining ASP and WWC
Message
From
05/12/2001 22:35:09
 
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00589792
Message ID:
00590325
Views:
19
>WWWC basically has it's own ASP style engine and you can run code inside of that page. So why bother with ASP, or alternately why bother with WWWC in the ASP pages? If you need any Fox code access use the WWWC scripting which is like ASP code, except it's Fox code. If you don't need to run Fox code use an ASP page.

I need to benefit of both. Basically, the template is having a FILETOSTR() function which is including an ASP page. In that ASP page, I have a lot of ASP code. So, the template contains a lot of VFP code and that templates includes an ASP page. So, the result would be that the content of the ASP page will only interpret the HTML code and not the ASP code.

From Visual FoxPro:

1. lcHtml=Response.ExpandTemplate('Myfile.html')
2. Response.Write(lcHtml)

Myfile.html is a template which contains a lot of fields from an HTML form. So, at this point I have all my fields to be ok as they include the values from the table. That page also includes some VFP code. Everything is ok at this point.

Myfile.html contains FILETOSTR('Myfile.asp')

In Myfile.asp, I have some HTML code and some ASP code. The HTML code is interpreted ok. But, the ASP code is not as the ASP code is not recognized by the WWC. Well, it may be but I just don't know how to achieve that. I guess you have a function to call somewhere which will make that happen.
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
Next
Reply
Map
View

Click here to load this message in the networking platform