SR2 SupportCenterCaps

Contact Support
 

Email:
support@refreshsoftware.com

Phone:
508-318-4480


  Link to this page

Home >  Publishing Examples >  Active Server Pages (ASP)

Active Server Pages (ASP)

ASP is a popular general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.


Download the Latest ASP Publishing Kit.

Note: You will need to change the database settings which are located in /include/global.asp


The following are examples of SiteRefresh code in ASP:

Header/Includes:
SiteRefresh includes several valuable ASP functions which can easy be included into any SiteRefresh template by using the standard ASP include statement. These functions make it easy to include SiteRefesh content.


<% @Language = "VBScript" %>
<%
Option Explicit
Response.Buffer = true
Response.Expires = -1000
%>

<!--#include file="siteRefresh.asp"-->

 

Echo Page Contents


You can easily display the contents of a page by using the GetContent function.


<%=GetContent( GetRequestedResource(), COPY %)>
 

 

In the next section, 'Basic Output', you see a sample ASP script that demonstrates how easy it is to pull data from SiteRefresh.

Basic Output >