include .asp functions in

Posted on 2005-04-28
Last Modified: 2013-11-25
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?

Question by:SeanGraflund
    LVL 35

    Expert Comment

    you can use <!-- #Include File="" --> 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

    LVL 35

    Accepted Solution

    why don't you convert your .inc file to .aspx file and use include statements to include it,
    or even better-create User Control (.ascx file) which is equivalent to asp include file in .NET

    Since you are starting to use .NET it would be a good idea to start now

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
    JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now