Global Subs   
 

Description: Update an entire website from one location! What we have done in the past, is to setup an include file called calls.asp, enablesessionstate = False, and load the file up with code that we use over and over again in a lot of our pages. Meta tags are a great example. What about page footers? What about menus? Think of one section of your pages that is pretty much the same on every page of your site. Just setup your Subroutines to display the text or images, then just Call it in all your pages! 

<% Sub standardMetas(cnDZ) %>
<link rel="stylesheet" type="text/css" href="css/style.css">
<meta name="robots" content="ALL=FOLLOW,INDEX">
<meta name="revisit after" content="7days">
<meta name="copyright" content="Copyright 2000, Company, Inc. All Rights Reserved.">
<meta name="author" content="Jane Doe">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<% End Sub %>

<html>
<body>
Then, paste this into your asp page
where you want the above code called:
<%
Call standardMetas(cnDZ)
%>


My3C's
perrychicker
It's easy... it's a PSACAKE!
Back | Tell A Friend | Search this Site
1998 - 2014 psacake.com
Version 3.23

Send me One Million FREE Guaranteed Visitors