Link to home
Start Free TrialLog in
Avatar of SeanGraflund
SeanGraflund

asked on

include .asp functions in asp.net

i have an old asp include file that is still used from some asp pages, and we'd like to keep using this file instead of .net (some guys decided to hardcode array values that need to be stored on the page) ...

there is no way to compile vbscript code inside .net .. how can I inlcude a ".inc" file, without having to modify it and still call the functions from that .inc file?

Avatar of YZlat
YZlat
Flag of United States of America image

you can use <!-- #Include File="MyFile.inc" --> to include the file, but you can't really mix ASP.NET with Classic ASP.

Also i would like to mention that using .inc files is not very secure and it's better to rename your .inc files to .asp

ASKER CERTIFIED SOLUTION
Avatar of YZlat
YZlat
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