Global Subs

Update an portions of your 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 2024, 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 %>
Then, paste this into your asp page where you want the above code called:
 Call standardMetas(cnDZ)

subs meta tags global subs

Back To Top
© 1998 - 2024
Version 7.21 | Advertise on this site