Results 1 to 4 of 4

Thread: Calling Routines from an External VBScript File

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37

    Question

    How do I link an external VBScript file to my ASP file?

    Where should I put the code to link the VBScript file?

    How do I call a routine that is found on my external VBScript file?

    I used the code below to call the routine from the external VBScript file:

    'MakeConn is the name of the routine
    Call MakeConn(Con,DSNTemp)

    Unfortunately, this error message appears:
    Type Mismatch 'MakeConn'

  2. #2
    Lively Member chrisgaddy's Avatar
    Join Date
    Mar 2001
    Location
    Olive Branch, MS
    Posts
    71
    why not include the file in your ASP page?

    <!--include file="filename.inc"-->

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37

    Question #include

    Will my site be secure if i use server side include directives (such as what you suggested) to link external files to an HTML page?

  4. #4
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    Security is as Good as (or as Poor as) Your asp page.
    Don't name your Include files with anyother Extension than .asp

    If You Place Database connection code and Passwords
    in an Include file with .inc extension some one Good
    Enough to guess the file's Name might simply see the code just by requesting the File over http. That's
    Because normally Server does not process Individual
    .inc files.


    The SSI syntax is..

    <!-- #include file="filename.asp" -->
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width