Asp coding the include directive

Posted at 9:32:59 AM in BP Blog (7) | Read count: 3459

Few things I found by accident while programming in asp.

The include directive is not part of the asp code or, in other words, the directive doesn't go between the <% %> script delimiters.

Depending on your editor,  the included file will not properly show the coding logic if the file extension is not .asp.  I had an if then elseif end if structure and the elseif didn't show correctly.  That's an editor issue.  the include file doesn't have to end in .asp.  

The script in the include file must also have the <% %> delimiters.  This is a no brainer if you also have html in the file, but if the entire file is an asp script, those delimiters must also be present.

 

Written by Leonard Rogers on Thursday, April 21, 2011 | Comments (1)

  1. 1. Wow this is really helpful I learned so much today!

    Sean

    4/26/2011


  2. Name
    URL
    Email
    Email address is not published
    Remember Me
    Comments

    CAPTCHA Reload
    Write the characters in the image above