I have added simple logging to my functions library which requires a class to work. When I use an include link (<!--#include file="./system_logger.asp" -->) it displays a "name redefined" error. GREP was used to remove all references to the class file except
in the function library.
How do I include a class file reference in an external library?
If you use the file keyword to include a file, you need to use the file path with the syntax (\). So you need to change the file path from “./system_logger.asp” to “.\system_logger.asp”.
You can learn more about how to include files in asp page in the following link.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
1 Post
Combining libraries
Mar 01, 2016 04:45 PM|srider1969|LINK
I have added simple logging to my functions library which requires a class to work. When I use an include link (<!--#include file="./system_logger.asp" -->) it displays a "name redefined" error. GREP was used to remove all references to the class file except in the function library.
How do I include a class file reference in an external library?
1850 Posts
Microsoft
Re: Combining libraries
Mar 02, 2016 02:46 AM|Jean Sun|LINK
Hi,
If you use the file keyword to include a file, you need to use the file path with the syntax (\). So you need to change the file path from “./system_logger.asp” to “.\system_logger.asp”.
You can learn more about how to include files in asp page in the following link.
https://msdn.microsoft.com/en-us/library/ms524876(v=vs.90).aspx
Best Regards,
Jean
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.