Include Files in MyGeneration

We will post tips and tricks not posted in our documentation to help fill the gap.

Include Files in MyGeneration

Postby mike.griffin on Mon Mar 07, 2005 3:10 am

In JScript and VBScript includes should go on the first line of your template:

JScript
Code: Select all
<%#SCRIPT sql_library.js%><%

VBScript
Code: Select all
<%#SCRIPT mike.inc%><%

The include files must be in the same directory as the template. However, you can use full path names to located the include file.

In DotNetScript (C# or VB.NET) you include files like this:

Code: Select all
<%#FILE filename.cs %>

You can include it in a specific spot like this:

Code: Select all
%><%#FILE mike.cs%><%
User avatar
mike.griffin
Site Admin
 
Posts: 3290
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

Return to Tips and Tricks

Who is online

Users browsing this forum: No registered users and 1 guest

cron