Link to home
Start Free TrialLog in
Avatar of fskilnik
fskilnikFlag for Brazil

asked on

Using Classic ASP inside HTML pages

Hi there,

I have bought a nice html-bootstrap template to create a "new" website that will (in the near future) substitute another one
("old").

My problem is that the old one has dozens of classic-asp pages, and I would like to reuse (if possible) all code already created.

Considering (for example) the functions involved, I have created an "auxiliary_asp_Page.asp" in which I put all functions previously created, and in a new html page (say "test.html") I simply put the <!--#include virtual=""auxiliary_asp_Page.asp" -->  instruction.  

I guess this is not a problem but... let´s say a certain TestFunction(UserID)  is contained in the auxiliary_asp_Page.asp  and I want to execute it from the test.html page.

Of course I could NOT use this <%= TestFunction(1) %> command in the test.html page to get the TestFunction value for the UserID number 1, but that´s what I would like to do, so to speak.

This is of course just one example. I have to get fields from recordsets, etc.  In other words, I would like to use classic asp inside html pages, with not too much rework, of course.

How should I proceed, please?

Thanks a lot,
fskilnik
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fskilnik

ASKER

Thanks, Big Monty!