Internet Oversight Committee

IOC: Web3 Wrapper System

Get Started With ASP on Windows

If your unit resides on the Windows server and your files end in the .asp extension, you can use the ASP version of the wrapper system.

Download the local ASP Wrapper files in ZIP format (6 KB)

Testing Wrapper Availability

To get started, create a simple file and insert the appropriate commands to utilize the wrapper header and footer.

<!--#include virtual="/inc_uncg/header.asp" -->

<h2>Page Title</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam id mauris.
Mauris nec mauris at sapien tristique suscipit. Vivamus aliquet mattis ipsum.
Quisque erat dolor, facilisis a, bibendum a, volutpat ac, tortor.
Duis felis wisi, mollis vitae, rhoncus in, rutrum quis, ipsum. Proin in mi.
Curabitur tincidunt. Nunc neque. Proin gravida metus eleifend sapien.
Donec placerat nulla id urna. Donec est.</p>

<!--#include virtual="/inc_uncg/footer.asp" -->
template.asp

Upload the file to your unit webspace and view it using a browser. Does it appear with the UNCG Web3 Branding?

Template Screenshot

Declaring a Unit

Each unit requires a unique file that declares the variables for the entire unit.

CASE SCENARIO: Introducing The Office for Left-Handed Students!

Let us say that a new department was created at UNCG named the Office for Left-Handed Students, or OLH. If the Office wanted to employ the Web3 Accessible Wrapper System, it would need to create a file that declared the variables for the departmental website:

If implementing the unit on the Windows server in ASP, the office would create a file named global.asa within their departmental space: F:\\web\websites\olh\home\:

' UNCG WEB3 WRAPPER :: SITE VARIABLES :: ASP :: VERSION 2.0::12/01/2011
<script language="vbscript" runat="server">
Sub Application_OnStart
	Dim UNIT_NAME 	  : Application("UNIT_NAME") 	= "Left-Handed Students"
	Dim UNIT_URL 	  : Application("UNIT_URL") 	= "http://web-d.uncg.edu/olh/"

	Dim DEPT_NAME 	  : Application("DEPT_NAME") 	= "Office for Left-Handed Students"
	Dim DEPT_LOCATION : Application("DEPT_LOCATION") 	= "Suite 101, EUC"
	Dim DEPT_PHONE 	  : Application("DEPT_PHONE") 	= "336.334.LEFT"
	Dim DEPT_FAX 	  : Application("DEPT_FAX") 	= "336.334.1111"
	Dim DEPT_EMAIL 	  : Application("DEPT_EMAIL") 	= "lefty@uncg.edu"

	Dim UNIT_LAYOUT   : Application("UNIT_LAYOUT") 	= 1	'0=Fixed width (Default),
								'1=Liquid Layout

	Dim UNIT_MENU 	  : Application("UNIT_MENU") 	= "/olh/inc_unit/unit_menu.asp"
	'Dim UNIT_HEADER  : Application("UNIT_HEADER") 	= "/olh/inc_unit/unit_header.html"
	'Dim UNIT_ADMIN   : Application("UNIT_ADMIN") 	= "/olh/inc_unit/unit_admin.html"

End Sub
</script>
F:\\web\websites\olh\home\global.asa

Associating Pages With Your Unit

Because of the implementation of the Windows server, each departmental account is a separate application, similiar to a unix virtual host. Therefore, the wrapper system understand the variables declared in your global.asa as the variables to be associated with the pages within your webspace.

Reload your page and confirm that the wrapper is incorporating your specific unit content.

Implementing Page Specific Commands

The wrapper system can build a custom page by incorporating page-specific variables into the header and footer. These variables occur only on the page on which they are explicitly stated. In order for this to occur, the wrapper needs to passed page specific commands.

On your page, prior to including the header.html, declare a PAGE_TITLE variable.

<% Dim PAGE_TITLE : PAGE_TITLE = "This is a Template Page" %>

<!--#include virtual="/inc_uncg/header.html" -->

<h2>Page Title</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam id mauris.
Mauris nec mauris at sapien tristique suscipit. Vivamus aliquet mattis ipsum.
Quisque erat dolor, facilisis a, bibendum a, volutpat ac, tortor.
Duis felis wisi, mollis vitae, rhoncus in, rutrum quis, ipsum. Proin in mi.
Curabitur tincidunt. Nunc neque. Proin gravida metus eleifend sapien.
Donec placerat nulla id urna. Donec est.</p>

<!--#include virtual="/inc_uncg/footer.html" -->
template.asp