I'm actually translating my ASP functions, which I include in all the asp pages that need them, to ASP+. How to include pages<BR>containing only functions (and no html) in ASP+.<BR>- Using pagelet ?<BR>- make a .aspx with no html and include it in ASP+ with the <include virtual<BR>...> statement ? like I do for ASP.<BR><BR>Thanks for your help...<BR><BR>What they contain makes no difference<BR><BR><!--#include file="../includes.aspx"--><BR><BR>or<BR><BR><!--#include virtual="/includes.aspx"-->You can replicate this functionality with a Pagelet:<BR><BR>[blah.aspc file]<BR><%@ Page Language="VB" %><BR><%@ Import Namespace="System.Data" %><BR><%@ Import Namespace="System.Data.ADO" %><BR><script runat=server><BR> Function ConnectToDB() As ADOConnection<BR> ConnectToDB = New ADOConnection("DSN=myDSN")<BR> End Function<BR></script><BR><BR>[foo.aspx]<BR><%@ Page Language="VB" %><BR><%@ Import Namespace="System.Data" %><BR><%@ Import Namespace="System.Data.ADO" %><BR><%@ Register TagPrefix="cj" TagName="connect" src=http://aspmessageboard.com/archive/index.php/"blah.aspc" %><BR><cj:connect id=cjBlah runat=server /><BR><html><BR><head><BR><script runat=server><BR> Sub Page_Load(Source As Object, E As EventArgs)<BR> Dim dsc As ADODataSetCommand<BR> dsc = New ADODataSetCommand("Select * from Products", cjBlah.ConnectToDB())<BR> End Sub<BR></script><BR></head><BR><body><BR><BR>Doug Seven<BR>CodeJunkies.Net / ASPNextGen.com<BR>[email protected]<BR><BR>Visit www.ASPNextGen.com or www.theFutureOfASP.com, both brought to you<BR>exclusively by CodeJunkies.Net, for tutorials and information on ASP+ : the<BR>next generation of Active Server Pages.<BR><BR>http://www.codejunkies.net<BR>