Server Side Includes (SSI) with ASP


Server Side Includes (SSI) with ASP

People often have identical sections of code spread throughout many ASP pages, typically code at the top of the page (usually referred to as the header) and the lower part of the page (the footer). Similarly, you may have code that performs a certain set of instructions that you are repeating across multiple pages. Consider an example:-

<%
If foobar="yes" then
response.write "YES!"
Else
response.write "NOT YES!"
End if
%>

Ok, ok... it's simple, but imagine that you used this on multiple pages. What's wrong with this picture?

Well... you don't have to think about that long before realising that if you ever wanted to change something about that piece of code, you'd have your work cut out. you would have to change every page... everyone has done this at some stage and luckily most usually take the steps to learn a way around this problem.

If we could save our valuable chunk of code into a file and have that file accessed whenever we needed the code, then we no longer have a problem when it comes to changing things, as we simply update one file. Include files or Server Side Includes (SSI) as they are more commonly known are a powerful way to not only save time when it comes to maintaining and updating a site, but also increase efficiency and speed of that site too!

Ok, lets see how we use an include file... to start with we need to use one of two methods. The first one allows for including files relatively. By that I mean relative to the directory the ASP file that is using the include file resides. The second method includes files virtually. Including files virtually means that the path is taken from the root directory.

Consider that we are going to have a file (/main/somefile.asp) include another file (/includes/someinclude.asp).

To demonstrate, relative inclusion, look at this:-

<%
Response.Write "executing included code now"
%>
<!--#include file="../includes/someinclude.asp"-->
<%
Response.write "done executing included code"
%>

And here, we give an example of the other method, virtual inclusion:-

<%
Response.Write "executing included code now"
%>
<!--#include virtual="/includes/someinclude.asp"-->
<%
Response.write "done executing included code"
%>

Note the slight difference between the two methods. With virtual inclusion, you can move the file that calls upon the include file anywhere without affecting the outcome, because the path is always relative to the root. The same cannot be said however for relative inclusion. If you move a file that is using relative inclusion to a different directory, you'll most likely find the relative path is no longer correct.

From the examples above, you may also notice that both methods, when calling the include do so OUTSIDE of the ASP script block. This because #include declarations are not interpreted by ASP. Include files are included before a single line of ASP is processed which means the following WONT work:-

%lt;%
Page=request.form("page")
%>
<!--#include file="../includes/<%=page%>.asp"-->

We were attempting to perform a dynamic include and I would be the first to admit that the above would be very useful indeed if in fact it were possible. I do intend to cover a few methods that work around this set back but I know you will now be itching to get started right away on using include files to even worry about this, so I will cover it in a future article.

I hope that you have found the above informative and hope it inspires you all to write code that's more efficient and more easily maintained.

Rob Collyer, experienced with 20 years programming knowledge and site administrator of www.webforumz.com - Copyright 2003-2004

In The News:

@Pika/web Frees Modern Web Development from the Complexity of Package Bundling  InfoQ.compika/web, part of the pika tool chain, aims at improving web application developers' experience by turning often-complex bundling processes into an opt-in ...
Compliance skills in demand as data becomes the new oil  Business TodayThe top three skills witnessing a rise in the country are Robotic Process Automation, Compliance, and Continuous Integration.
IoT, the Real Game Changer of Web Development!  CIOReviewFREMONT, CA: With the growing emergence of technology and the evolving requirements of individuals as well as companies, there has been an increase in ...
KSM Consulting Acquires Web Development Company  Inside INdiana BusinessIndianapolis-based KSM Consulting is adding to its portfolio. The firm, which specializes in technology, data analytics and management consulting, had ...
How To Find A Stellar Web Development Agency  ForbesWhen you're looking to hire an agency, act as if you're hiring an employee.
Why use Vue.js for UI web development?  JAXenterIf you are looking to start a new project and you are not sure if Vue.js would be the right choice for you, check out this overview of the popular framework.
Know About Role of PHP In Web Development  Customer ThinkIt is a well-established fact now that for any company to flourish it needs to have its presence on the digital platform. While social media can be the right place to ...
The Most Common User Interface Errors Made During Web Design  Promotion WorldWeb design is a key element of any company's future planning and web development companies can assist forward thinking businesses in a number of ways.
PHP VS JAVA: Which Is The Best Option For Web Development?  Promotion WorldDifference Between PHP VS JAVA To develop a website, the developers need a programming language which is best suited. PHP and Java are the most.
These are the hottest skills that can get you hired right now in Asia Pacific and India, according to LinkedIn  CNBCTV18There's a misconception out there that the future of work will be robots and artificial intelligence automating all the jobs, leaving nothing for the majority of the ...
Web design and development  IndivigitalWe build user-friendly websites that help small brands standout in competitive marketplaces. We believe a website should and can be more than an obligatory ...
The Complete Front-End Web Development Course  InverseThe Details. Start learning in-demand programming skills & tools; Access 117 lectures & 14 hours of *content* 24/7; Dive into web development basics w/ HTML ...
What is the web development lifecycle?  NewsPatrollingWeb Development Lifestyle is a definite difference in the general framework for developing any application development project. Complying with the same.
Web Hosting Services Market development with Major Players: GoDaddy, Host Name, INC, Bluehosting.  News ExteriorThe latest research on Web Hosting Services Market both qualitative and quantitative data analysis to present an overview of the future adjacency around Web ...
Genuitec Revamps the Eclipse IDE for Web Development with Major CodeMix Update  PR WebCodeMix adds new enhanced functionality to its already impressive toolset, resulting in a stronger Eclipse IDE and a more natural experience for Web ...
This cheap online course will teach you all about front-end web development  MashableInteractive buttons. Scannable layouts. Flashy graphics. Beautiful typography. Elements of a website — or any digital product for that matter — that make you go ...
How to Export Adobe XD to HTML  Guiding TechAdobe XD is an amazing design tool that lets you easily create fantastic website designs without any prior web development experience. You can just import ...
Community Internship Collaboration Seeks Business Members  Los Alamos ReporterUNM-LA partners with local businesses in the Community Internship Collaboration to provide meaningful work experiences for students while developing a ...
70 Web Design and Development Terms We Wish You Knew, Part One  Business 2 CommunityWe've been designing and developing websites for 16+ years. So, naturally, we use a good bit of jargon. Sometimes it's shorthand but the majority of the time we ...
Enterprise-Grade Analytics: Two Brands Share Why They Chose Adobe Analytics  CIOAt the heart of digital transformation is the way it fundamentally changes how businesses make decisions.
Website Development Handoff Checklist: What Your Developer Needs to Be Successful  Business 2 CommunityWebsite mockups are completed and client-approved. Pages and templates have yet to be built. It's time for a website development handoff. A website ...
5-Step Web Design Process to Create Winning Websites  Business.comA stellar design isn't merely focused on how pretty the interface looks.
Cramer Remix: Adobe is the way to play the 'golden age of creativity'  CNBCJim Cramer recaps Adobe's latest conference call to explain how the company is upending the retail industry.
Internships 2019: Applications open for internship with Department of Health & Family Welfare, Delhi  Scroll.inThe last date to apply for the 3-month internship for 'Project Connection-Aid' is 24 June, 2019.
JetBrains Survey - Do You Dream Code?  iProgrammerFor the third year running JetBrains has conducted its Developer Ecosystem Survey and has reported on some of the answers from 7,000 developers from 17 ...
Django Vs Flask: A Detailed Comparison Between Python's Most Popular Frameworks  Analytics India MagazineHere is a detailed comparison between the two web frameworks of Python called Django and Flask.
Less Talked About React Native App Development Considerations  AppinventivTable of *Content*: 1. How is React Different from React Native framework? 2. How Does React Native Compare to Other Cross-Platform App Development ...
Docker embraces Windows Subsystem for Linux 2  ZDNetDocker has realized that Microsoft's new Windows Subsystem for Linux 2 has made Windows much more attractive both to Docker and its container developers ...
How IoT Affects The Future Of Web Developments  ReadWriteATMs, Apple Watch, Fitbit, Self-driving cars and more are part of a list of devices using IoT is endless. The concept of IoT began years ago; we just didn't use the ...
Top 5 Programming Languages For Machine Learning  TechopediaWhile there are several programming languages that work especially well for machine learning, each of them comes with unique advantages and ...
Python Could Rule the Machine Learning/A.I. World  Dice InsightsWhat do developers actually use Python for? According to a developer survey by JetBrains (which also introduced Kotlin, the up-and-coming language for.
Best Web Development Company 2019 - Customer Experience – Winners at DCE Awards  IT News OnlineMumbai, India, June 05, 2019 --(PR.com)-- Website Developers India Pvt. Ltd. is the proud winner of the Best Web Development Company 2019 - Customer ...
Full Stack Web Developer  hypepotamus.comWebsite Future + Suns. ATL Creative Agency. Future + Suns is a web and *content* agency in Atlanta's Ponce City Market. We are hiring an experienced Full ...
The Basics Of Web Development That Will Shorten Your Time  TheUSBportWeb development means building and maintaining websites and is the work that takes place in the background and that allows a website to have an impeccable ...
‘I code in my dreams too’, say developers in Jetbrains State of Developer Ecosystem 2019 Survey  Packt HubLast week, Jetbrains published its annual survey results known as The State of Developer Ecosystem 2019. More than 19000 people participated in this ...
6 Software Development Concepts You Can Learn Through Online Courses  TechopediaWhen it comes to understanding the process of software development, there's a lot to learn. These courses can help you up your software development game.
The 15 highest-paying tech jobs for recent college grads and Gen Z  Business Insider IndiaJob description: Leads and coaches the sales team, focusing on individual sales territories. Duties include assigning sales territories,
8 JavaScript Frameworks Programmers Should Learn In 2019  Analytics India MagazineMost popular websites used JavaScript as their web framework. Here are the top 8 JavaScript frameworks for web development, in alphabetical order.
How Big Data is Transforming Web Development for the Better In 2019  Irish Tech NewsBy Sagar Sharma, Web development is undergoing a significant revolution. Until now, web developers used to build applications on the basis of research and.
JRNI opens web development office in Manchester | Business  The Union LeaderMANCHESTER — A customer engagement company whose clients include U.S. Bank, LEGO, Nordstrom and Levi's has chosen the Queen City for its web ...
Node.js Vs Angular - An in-depth comparison  JAXenterIn this article, we compare the two most popular JavaScripts - Node.js & Angular.js - to discover the main differences between them.
Google study aims to improve decision making behind web feature deprecation | The Daily Swig  The Daily SwigThe appliance of science. Google has teamed up with academics in an effort to create a more systematic approach to web feature deprecation. Deprecation ...
10 Key Steps To Building A Great Small Business Website  ForbesIf you are looking to build a new startup website or make your current site more effective, here are 10 key steps to getting started and helping your small business ...
LKCS Receives Three Awards for Outstanding Web Development Projects  PR WebPeru, IL (PRWEB) May 28, 2019 -- LKCS has received three Awards of Distinction from the Communicator Awards for outstanding website design and ...
Unemployment Coding academy opens new opportunities for Moroccan youth  Al-Monitor3W Academy Maroc aims at addressing youth unemployment in Morocco through accessible tech education.
Low-code for the professional developer  InfoWorldSurveys have shown that professional app developers are skeptical of traditional low-code platforms. Developers fear that low-code platforms will strip them of ...
11 Chicago Web Design and Development Agencies To Know  Built In ChicagoStunning visuals. Informative, yet gripping, *content*. Lightning fast load speeds. One needs these things to create a successful website. It's all about creating ...
UK-based firm opens web development office in Manchester  New Hampshire Business ReviewCustomer engagement company JRNI Inc. has opened its first U.S. web development office at 66 Hanover St. in Manchester, part of what it calls an aggressive ...
Web developer Wix creates 100 jobs as Dublin office opens  Newstalk 106-108 fmA cloud-based web development platform has created 100 jobs in Dublin with the opening of its new...
2019's Top Programming Languages for Advanced Analytics, Machine Learning and Data Science  Analytics InsightData science has attracted many followers, a fact which is evident from the huge number of registrations in data science seminars, and workshops and not to ...
Developing artificial intelligence tools for all  MIT NewsTo demystify artificial intelligence (AI) and unlock its benefits, the MIT Quest for Intelligence created the Quest Bridge to bring new intelligence tools and ideas ...
What you should know before hire a web developer for your WordPress site  Best in AustraliaBefore meeting with web developers, be sure to ask the following questions of any prospective WordPress web developer for wordpress web development.
Web Design & SEO Costs: A Guide for Selecting a Vendor  MarketingProfs.comHow do you choose a web design or SEO professional? How much should you pay them? A low-cost solution or vendor can often cost you more in the long run.
4 Useful Tools for Web Development  TheUSBportToday, websites can be massive and complex. Even the most experienced web developers need to have a good toolbox to do their job well. Therefore, here is a ...
Introducing Voila that turns your Jupyter notebooks to standalone web applications  Packt HubLast week, a Jupyter Community Workshop on dashboarding was held in Paris. At the workshop, several contributors came together to build Voila, a package ...
Elements to Make Your Website More Than Just a Pretty Face - Are Flaws Hiding Just Beneath The Surface? - Window Film Magazine | Key Communications Inc.  Window Film magazineThis article is a summary from a larger article I was working on for my marketing company, I hope you'll find it beneficial. I think most people would agree, having ...
The Top 7 Qualities Of A Successful Website – Plus, The 23 Best Web Development Agencies, According To DesignRush  PR WebAlmost 40 percent of consumers will stop engaging with a website if it takes too long to load or is not beautiful to look at -- but DesignRush determined the top ...
Internet Security Provider Cloudflare Announces an Ethereum Gateway  CoinDeskInternet security provider Cloudflare is introducing the Ethereum Gateway to its Distributed Web Gateway toolbox enabling users to interact with the Ethereum ...
Best Programming Languages to Create a Startup  AiThorityUpon deciding to launch a startup, you face many problems branding, business, marketing, design, and technical aspects.
Top Web Development Trends 2019  YourStory.comWeb Development Trends 2019 Do you know global internet users number have surpassed 4 billion in 2018? It is found in a recent study by We Are Social and ...
Newsbites: Noteworthy tidbits for 6.19.19  RichmondBizSenseRetail. Ellwood Thompson's will close its cafe at the Institute for Contemporary Art at the end of the month. Charm School's Forest Hill location will center on ...
How a Glasgow company is helping firms break into the Chinese e-commerce market  The ScotsmanChina has always been a tough nut to crack for online retailers. The casualties have included the biggest names of all, including Amazon, which recently scaled ...
Real estate, ICT top players here  SunStar PhilippinesTHE Davao City Investment and Promotion Center (DCIPC) reported that the real estate and information and communication technology (ICT) industries remain ...
Algorand, a Proof-of-Stake Blockchain Company, Goes Open Source  CoinDeskAlgorand, a permission-less, proof-of-stake blockchain and technology company, announced that their node repository is now open source. Part of Algorand's ...
Block.One Pays $30M for New Blockchain-Powered Social Media Platform’s Domain Name  CointelegraphEos developer Block.one has paid $30 million in cash to purchase the voice.com domain name for its new blockchain-based social media.
'Hard Core Fund' Collects 50 BTC to Support Bitcoin Developers  CoinDeskAccording to venture capitalist Dovey Wan of Primitive Ventures, finding sustainable funding for bitcoin developers is the biggest challenge facing the ecosystem ...
What are the latest web development Trends For businesses In 2019?  YourStory.comIt's impossible to go along with web development trends; because it is subject to change. Rarely, a week passes without any release of a new JS framework, ...
Things to consider before going into web development  JAXenterWe normally don't offer beginners' guide for aspiring developers but this time around we are making an exception! Amit Jat has a set of extremely useful ...
Safari Technology Preview release 83 now available for macOS Mojave and macOS High Sierra  Packt HubThe team at WebKit announced that Safari Technology Preview release 83 is now available for macOS Mojave and macOS High Sierra. Safari Technology ...
Using Java with Azure  InfoWorldBringing Java code to Azure is a lot easier than you might think.
Senior Front-End Web Development - HTML5/CSS/Responsive Design job, Cape Town, Woodstock  Bizcommunity.comCreate functional website pages, mailers, banners from designs with experience in developing cross-platform and cross-browserDevelop well-structured, ...
A Quick Primer on Managing Your Web-Development Tasks  EntrepreneurNeed to modify your website or app? Here are the tips you'll need to do that right.
Wix.com opens customer support centre in Dublin  The Irish TimesThe Israeli web development company's Irish office employs 100 staff.
Internshala Trainings launches The Web-Dev Battle - A web development contest  Knn IndiaInternshala Trainings has launched The Web-Dev Battle for the students who are passionate about building their ideas from scratch using their creativity and ...
Top 10 Image Formats That Are Best for Web Development  YourStory.comWeb application development is one of the biggest trends in this era because now a day's software has tons of functionality that cannot work properly on our ...
Cosmic JS wants to simplify web development so you can focus on content  TechCrunchIf you are a web developer, you know how complex many of the traditional web *content* management systems have been. One of the big problems has been ...
The Crucial Role of AI in Web Development  Analytics InsightArtificial intelligence is undeniably no longer a buzzword in the web development space. AI in web development is used to design automation, integrating into ...
Polyglot programming allows developers to choose the right language to solve tough engineering problems  Packt HubPolyglot programming might feel like a niche technology trend, but it is, in fact, increasingly important, as this year's Skill Up results suggest.
What makes Laravel the most Preferred PHP Framework for Web Development  Customer ThinkOne of the most daunting tasks for any business is choosing the right PHP development framework to build a robust web application. PHP frameworks are not ...
Top 5 WordPress Development Companies in the World  YourStory.comAre you searching for top WordPress development companies? We are providing you the list of top and best WordPress development companies in the world.
Are You Missing This Important Puzzle For Web Development Success? – Test Driven Development  YourStory.comAs a Web Development Company, there are many aspects of your business that determine your success. You can choose to create your application as cheap as ...
Web Development on an iPad  Laravel NewsThe idea of working entirely from an iPad has always appealed to me. The portability, the battery life, and of course the touch screen makes it an excellent device ...
Creative UI/UX approaches to deliver high-performance Web Development solutions  Customer ThinkOver time, software design has had different approaches that have evolved and become enriched both in their tasks and in the variety of possible techniques to ...
Stefan Judis, a Twilio web developer, on responsible web development with HTTP headers  Packt HubAt this year's JavaScript Fwdays, Stefan Judis, who works at Twilio as a frontend developer, talked about how web developers can make their sites secure with ...
Solve Web development issues to Drive Business to Your Website  Customer ThinkHave you ever had to develop a website? I do not mean to sit down to program it but have to, at least, order it and work with the person or team that carries it ...
10 Topmost Web Design & Development Companies in Chennai – 2019 [Updated List!]  YourStory.comThe list of Top 10 Web Design & Development Companies in Chennai is sorted out through a research methodology. These companies are well verse in Web ...
Harness web development skills to create better desktop applications  The GuardianIntegrating best of breed desktop applications from Adobe Creative Suite with web tools can provide a better experience for creative staff. Sakib Supple.
Internshala Trainings launches The Wed-Dev Battle — A web development contest  APN NewsAn opportunity for the students of India to learn the top in-demand skill and earn rewards worth INR 1 lakh. Internshala Trainings has launched The Web-Dev ...
Chair of House Financial Services Committee Requests Halt on Facebook's Crypto Project  CointelegraphLeader of House Financial Services Committee Requesting Halt, Hearings on Facebook's Libra.
AI Needs to Develop to Impact Web Design  Business.comArtificial intelligence has had a big impact on web design and development, but it still has a long way to go.
5 Ways in Which Data Science Is Revolutionizing Web Development  Analytics InsightTechnology is a highly dynamic field where new advancements keep coming every day. The data is the next big thing about this modern digital age.
Looking For Coding Jobs? These 8 Programming Languages Are In Highest Demand Right Now (2019 Data)  Trak.inCoding jobs are evergreen jobs: But the platforms keep on changing. Here are the 10 programming languages which are in highest demand right now (2019 ...
JavaScript and Web Development InfoQ Trends Report  InfoQ.comThis InfoQ Trends Report looks at the current trends with JavaScript, HTML, CSS, and web development, exploring technologies and options gaining further ...
Learn Full-Stack Web Development With 80% Off This JavaScript Bundle  InverseThis E-Degree program has been designed as a one-stop solution for learning web development with JavaScript and other crucial programming languages.
Master web development with this JavaScript master class  Boing BoingWhen it comes to website development, JavaScript is the language that underlies it all. If you want to learn that language well enough for a career, you'll need ...
What Skills Should You Look for in a Web Developer?  Customer ThinkIntroduction. Choosing a web development company is one of the most important decisions a business can make in today's marketplace. Simply put, how a ...
Top 12 Python Web Frameworks of 2019 Programmes Should Know  Analytics India MagazinePython is a very versatile programming language. A new developer survey about Python by the Python Software Foundation and developer tools vendor ...
Future of web development in India  Daily News & AnalysisFuture of web development in India - Web development, as a career, has witnessed a boom all over the world, including India, since the time e-commerce has ...
10 Essential Question to Ask Your Web Developer  Business.comAsking the right questions when choosing a web developer can help you find someone who understands your vision and can give you the website you want.
Web Development: What's Big In 2019?  HackadayI try to keep up with web development trends but it's hard to keep pace since it's such a fast evolving field. Barely a week goes by without the release of a new JS ...

Creating a Sticky Web Site

When used to describe a web site, the term "sticky"... Read More

The Birth of a Professional Web Site

The Internet has opened a whole New World of opportunity... Read More

Web Site Development Process - The Life-cycle Steps

A system development process can follow a number of standard... Read More

Benefits Of An Accessible Website: Part 1 - Increase In Reach

The DDA (Disability Discrimination Act) states that service providers must... Read More

Building a Great Intranet Taxonomy

While it may seem like a "quick and easy" task,... Read More

10 Things You Should Be Monitoring On Your Website

Every business needs to know how it is doing. That's... Read More

How Did You Get Here?

When marketing your website, it's important to know which of... Read More

Get Your Business on the Web

I can't think of any business alive today that couldn't... Read More

7 Golden Rules For Building Mini Sites

First, an eye opener. Making your fortune through affiliate programs... Read More

Do You Need a Web Database?

Does My Web Site Require A Web Database?If your web... Read More

Get to Know People through Websites

Web sites are not just places to sell things; they... Read More

What Works and What not Works for Your Internet Business

"Build it and they will come."--Filed of Dreams (1989) If... Read More

Make Your Own Website - General Website Design Tips

Wow, we`ve already taken a domain and chosen a web... Read More

Server Side Includes (SSI) with ASP

Server Side Includes (SSI) with ASP People often... Read More

Planning A Usable Website: A Three-step Guide

A website is like an information flow, with you as... Read More

Is Your Web Site Talking to Your Customer?

A while ago one of my clients approached me and... Read More

Nonsense! Why Do I Need a Website?

"I don't sell anything online, I don't advertise online, in... Read More

Your Website Reflects Your Business

Some left shoes are in isle 5, while the right... Read More

Content Management

More and more businesses are recognizing the importance of content... Read More

3 Rules of Website Designing and Layout

Now that you have got your domain name registered, your... Read More

5 Tips For A Better Website

Having an eye catching website is great, but are you... Read More

Web Measurement: What You Don?t Know Would Make A Great Book

"What's in it for me?" you ask. "Why should I... Read More

Product Promoting: Getting The Response

When you publish a content site there are times when... Read More

The Cost Of A Web Site

Just starting out, you can start with a simple informational... Read More

5 Sure Fire Ways To Send Visitors Away For Good

So your traffic is going through the roof yeah? It's... Read More