1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

include files in ASP

Discussion in 'C#' started by urfi, Jan 7, 2007.

  1. #1
    Hi

    i m new in ASP. plz tell me the meaning of this script.

    
    <%Option Explicit%>
    <!--#include file="_scripts/server/main.asp"-->
    
    Code (markup):
    i have not any "_scripts" or "main.asp" directory and file in source code. when i run this ASP file in browser this error occured

    
    Error Type:
    Active Server Pages, ASP 0126 (0x80004005)
    The include file '_scripts/server/main.asp' was not found.
    /myweb/Default.asp, line 3
    
    Code (markup):
    plz tell me the solution and also tell me the meaning of "_scripts"

    best Regards
    Urfi
     
    urfi, Jan 7, 2007 IP
  2. Garve

    Garve Peon

    Messages:
    62
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This line

    <!--#include file="_scripts/server/main.asp"-->

    simply looks for the file main.asp in the subfolder _scripts/server and includes it into the page.

    Obviously this file does not exist at the moment.
     
    Garve, Jan 7, 2007 IP
  3. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #3
    or use #virtaul=".... and do it directly from the slash
     
    ccoonen, Jan 7, 2007 IP
  4. iBoy

    iBoy Well-Known Member

    Messages:
    4,322
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    195
    Articles:
    1
    #4
    If you dont have this file scripts/server/main.asp then remove this line from line no.3
     
    iBoy, Jan 8, 2007 IP
  5. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #5
    main.asp should be present in scripts/server/main.asp
    If you dont have it there, either create it OR remove the include line.

    im sure the main.asp must be there show a main page, i wouldnt recomend removing the line. You shold correct the path to the main.asp file so that you dont get an error.
     
    Talker, Jan 8, 2007 IP
  6. Software_outsourcing

    Software_outsourcing Peon

    Messages:
    298
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Simply remove this line and let the program move ahead . Once it moves you can know what is missing . Only then you can know its significance , if it runs smoothly you are done otherwise find this file and insert it with a correct path.
     
    Software_outsourcing, Jan 19, 2007 IP