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:

Outsource Web Development: Lessons to Keep in Mind  YourStory.comWhen a company decides to take outsource web development services, there are many aspects that it judges the outsourcing company before finalizing the ...
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, ...
How Link Digital left web development behind to drive data growth  ITworldMaking its mark as a Canberra-based web development company in 2001, Link Digital began moving towards open data services about five years ago, based ...
5 Benefits of Android Web Development  NewsWatchAmong all of the directions, where a base language for development is Java, app and web development for Android developers are the most undemanding to ...
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.
The Web Development Capabilities You Need For Your Small Business  Customer ThinkResearch has found that less than two-thirds of small businesses have websites. Thankfully, over half of those without websites say they plan to build a site in ...
Why Aren't HTML/CSS/JavaScript Being Taught in Our Schools?  Interesting EngineeringSchools around the world should be teaching children web development tools, such as HTML, CSS and JavaScript, but they aren't. Instead, a number of online ...
Panic announces all new web development editor coming this year as Coda 2 successor  9to5MacThe developers at Panic today revealed some major changes coming soon to its web development offerings. The company says that later this year, it will release ...
5 Questions to Ask Remote Web Developers  DevOps.comHere are some questions to ask when interviewing remote web developers to understand whether they'd be a good fit for working remotely.
Tech internships in IoT, web development social media; highest stipend Rs 15,000  The Indian ExpressHere is a list of internships in the technology domain, from the latest internet of things (IoT) to social media, Bangalore has many openings. Students with ...
LogRocket nabs $11M Series A to fix web application errors faster  TechCrunchEvery time a visitor experiences an issue on your website, it's going to have an impact on their impression of the company. That's why companies want to resolve ...
10 Web Development Tips to Better Your Website Success  Thrive GlobalThe most common mistake any firm or individual can make when endeavor out on a new website project is to consider that design is everything. I can assure you ...
What Are The Emerging Trends In Web Development In 2019?  Promotion WorldUsers expectations are growing and to meet their expectations developers need to design more engaging digital experience. Make sure that website can.
Daily Deal: The Complete Full Stack Web Development Master Class Bundle  TechdirtThe $19 Complete Full Stack Web Development Master Class Bundle is seven courses covering today's hottest web frameworks and technologies. You'll start ...
Top Web development tips to get the success of your website - WhaTech  WhaTechWebsites are a crucial part of a business. In today's business world, not having a website for your business will make you lack behind your competitors because ...
The seven deadly sins of web design  Packt HubFor a great website, web developers meet client demands while at the same time thinking about users. Gary stevens discusses more such in his article.
Tips to improve your web development process - WhaTech  WhaTechJust like Google, Safari or any other search engine, web development services make changes regularly to get the best practices. If you want the best web ...
Bottrell Media - Web Development  WhaTechBottrell Media provides professional Website Design and Development services in Sydney, Maitland, Newcastle, Gold Coast, Brisbane, and Melbourne. Contact ...
SynapseIndia reaches a landmark in web development - WhaTech  WhaTechSynapseIndia has achieved a new milestone in web development. The company has delivered thousands of website development & maintenance projects.
OMNICOMMANDER Launches Upgraded Website Showcasing Industry Leading Web Development and Marketing Services  PRNewswireMIRAMAR BEACH, Fla., March 11, 2019 /PRNewswire/ -- OMNICOMMANDER, a financial technology firm specializing in website design, social media ...
Learn how to build better web experiences with this $29 UI/UX course bundle  The Next WebSimple, streamlined designs, consistent color schemes and a decluttered screen. Those are all tenets by which a strong web developer designs and builds.
Google launches Flutter 1.2 and Dart DevTools, a web-based suite of programming tools  XDA DevelopersFlutter is one of the newest additions to the arsenal for app developers. It's a UI framework for building beautiful, fluid, and interactive cross-platform native apps ...
10 programming languages that are in demand among top hiring companies  Express ComputerCoding continues to be one of the most in-demand skills in the job market. Many professionals are considering getting into the field. Possessing the required ...
Web Developer - Carminati Consulting  Built In ChicagoCarminati Consulting is hiring for a Web Developer in Chicago. Find more details about the job and how to apply at Built In Chicago.
Front End Web Developer - Aceable  Built In AustinAceable is hiring for a Front End Web Developer in Austin. Find more details about the job and how to apply at Built In Austin.
This bundle brings the JavaScript essentials together — and it’s just $12  The Next WebSure, HTML and CSS are the foundations of web development, offering the basic structure and formatting that make web pages and apps what they are today.
5 Popular Python Open-Source IDEs For Data Science Enthusiasts  Analytics India MagazineIntegrated Development Environment (IDE) is the daily-used coding tool for a programmer which enables a complete set for Source Code.
We're hiring! Web Developer/Programmer  Catholic OutlookThe purpose of the Web Developer/Programmer role is to ensure that the websites, intranet and other digital channels of the Diocese of Parramatta are ...
Node.js vs PHP: Which Language is Being Preferred by Developers?  TechnotificationPHP is may be the cornerstone of the web. However, a recent survey highlights that developers have started shifting to Node.js for backend.
Explanation: The Rise Of Full Stack Developers  MobileAppDailyAfter an immense amount of research we have curated a suitable explanation on the rise of full stack developers in 2019.
BGO Software - software development  WhaTechBGO Software is an EU-based company, which specializes in providing custom software development services. The company has developed projects for a ...
5 useful Visual Studio Code extensions for Angular developers  Packt HubVSCode has become very popular among Angular developers for running Angular CLI. This post looks at 5 VSCode extensions useful for Angular developers.
10 Popular JS IDEs For Java Developers  Analytics India MagazineIntegrated Development Environment (IDE) is crucial while coding for larger programming projects as they help in handling the code smoothly.
Hey Web Development Firms, Mercy Corps Wants A Knowledge Portal Built For Them In Zimbabwe  Technology ZimbabweMercy Corps, a US founded international humanitarian organisation is looking for a web development company to build a knowledge portal for some of their ...
Top 36 Web Accessibility Resources for Digital Marketing Companies  Search Engine JournalHere are the best tools for accessibility testing, trusted accessibility testing companies, and a list of reputable advocates and resources.
Why hiring Full Stack Developers makes more sense for MVP Development - WhaTech  WhaTechA Minimum Viable Product (MVP) is the backbone of any product, website or mobile application. A full stack developer is a Jack-of-all-trades developer. They are ...
Services Web Developer  hypepotamus.comWebsite hannon_hill Hannon Hill Corporation. Hannon Hill is currently hiring for a Services Developer. The primary function will be to integrate client websites ...
Stop using Chrome, Install Brave Browser! Wikipedia Co-founder Tells You Why  Ethereum World NewsUser privacy and the risks associated with data leaks should be a priority for today's globalized society, and Larry Sander, co-founder of Wikipedia, is fully aware ...
How to Select a Good eCommerce Web Development Company in 2019  Deadline NewsA good eCommerce web development company should have the same qualities you would look for in any business partner; knowledge, experience and ...
Benefits of Using Symfony in the Development of a Web Application for Your Business  The Future of ThingsIt is an inescapable fact that we live in an online world. In this world, any serious business that wants to get noticed and grow needs to have a web presence — a ...
Fast-growing web developer wins big at London chamber awards  The London Free PressA growing London technology business has been named large business of the year by the London Chamber of Commerce.
5 Best Programming Languages for Developing Mobile Apps  TechnotificationFind out the best programming languages for developing mobile apps (Android and iOS) and also compare each of them in terms of usability.
Digital Marketing Manager/Jr. Web Developer (#19-019) Job Opening in Kenmore, Washington  Chief MarketerBastyr University is seeking a qualified candidate to fill the Digital Marketing Manager/Jr. Web Developer position. This person will collaborate with a team of ...
TypeScript’s Quiet, Steady Rise Among Programming Languages  WIREDMicrosoft's programming language TypeScript has become one of the most popular languages among developers, at least according to a report published by ...
Why Magento App Development is the Best Fit For Your Business?  YourStory.comThe platform that is making waves in the eCommerce development is Magento. It facilitated a spurt in the development of the native online application.
Oxford dictionary adds ‘chuddies’ to list  The HinduThe word became popular after it was used as part of a catchphrase in a British television show.
BJP website hacked, Narendra Modi memes added with Bohemian Rhapsody  India TodayMultiple social media users reported on Tuesday that the Bharatiya Janata Party's website was hacked, and shared screenshots of an unflattering meme ...
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 ...
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 ...
New master's, bachelor's degrees approved at Dixie State University  St George NewsST. GEORGE — To meet the expanding educational needs of its growing student body, the Dixie State University Board of Trustees unanimously approved the ...
With its Elasticsearch distribution, Amazon Web Services sends more shockwaves through open-source software  GeekWireNobody really knows what lies ahead for the future of open-source software as cloud computing becomes the dominant force in enterprise tech, but the times are ...
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.
Learn what is needed for your career development –Oluwatobi Akinpelu  The PunchOluwatobi Akinpelu, 23, is an android developer at Farmcrowdy. He talks about his interest in technology What schools did you attend? This might...
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.
Own database development with this MySQL bootcamp for $11  XDA DevelopersMySQL is the most popular database framework in the world, used by the likes of Adobe, Apple, Amazon and a bunch more companies that don't start with the ...
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 ...
Meet Shavini Fernando, developer of a wearable vital monitoring device  Technical.ly DCFernando presented her product, OxiWear, at Georgetown University's second annual "Bark Bank" pitch competition last year and took home $35,000 in prizes.
Meet Armando, the Belgian star pigeon that fetched over $1.4 mn at auction  Economic TimesThe bird broke the previous record of $425k paid for a pigeon called Nadine.
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 ...
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 ...
Adobe Creative Cloud and the reseller opportunity  IT-OnlineMar 24, 2019. Adobe was the first major software company to completely move its product into the cloud, a bold move that many of its contemporaries are still ...
This $41 course package can get you hired as a back-end web developer  The Next WebFront end developers get all the glory. Their work is always right there in a user's face with all that HTML and CSS goodness. But those in the know know that the ...
How Artificial Intelligence is reshaping web designing and web development?  Express ComputerBy Ankit Gupta, CEO and VP, WeblinkIndia.net. The modern industries follow the consumer-driven approach, where customer experience has become the ...
Yale, Flatiron School create web development bootcamp for summer session  Yale NewsYale Summer Session is collaborating with Flatiron School to offer a Web Development Bootcamp for Summer 2019, which will carry two Yale College credits, ...
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 ...
7 Web Development trends that will shape your online market now and beyond  TechGenYZHere we list out 7 unignorable web design trends to accelerate your growth this year. This will help you shape your online market.
9 Web development trends you simply cannot ignore in 2018  TechGenYZWeb development is a major part in conversions and increasing your sales.To optimize your websites know the web development trends of the year.
Trends You can Expect in Web Development for 2019  Customer ThinkThe current generation of website developers is ideal employees in consideration of web development spectrum. Most of the modern people respond quickly to ...
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 ...
Done Role of IoT in Web Development  Customer ThinkWith the increasing advent of technology and the ever-changing demands of people as well as businesses, there has been a rise in technologies which have ...
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 ...
Become a full stack web developer with 46+ hours of training for $29  XDA DevelopersMany developers only focus on one or two languages. By specializing in this way, you rule yourself out of many great opportunities. In contrast, full stack ...
Score 9 courses on back-end web development for just $41  MashableAt the risk of sounding totally high: Websites are sort of like restaurants, when you think about it. Stick with us. You've got your front-end developers, who function ...
How IoT Is Changing Web Development  IoT For AllIoT brings changes to software development on many levels, including on the web. Let's discuss the main peculiarities and nuances of IoT web development.
How AI is reshaping web development | Articles | Big Data  Innovation EnterpriseHow AI is enabling are reshaping web development and giving developers everywhere hope about the future of tech.
Web development trends 2019 - Ponder on them to make a difference  ITProPortalThe world of web development experiences demand constant transformation every year, whether it is related to tools, services, coding, languages, or designs.
Live | IAF strikes on JeM camp in Balakot: Tri-service chiefs meet PM, NSA  The Hindu''The training camp in Balakot was deep inside. It's in proper Pakistan itself, close to Abbottabad, infamous for Osama bin Laden,” says senior IAF source.
How will AI change the web development in future?  Customer ThinkAI is present everywhere – from chatbots to virtual assistants, AI is used in day to day activities. Virtual assistants like Siri and Cortana are helping the users by ...
Lean Web Development with the Best Teachers Online  Digital InspirationMeet the best online teachers for learning modern web development including React, TypeScript, JavaScript, Golang, Flutter, Nodejs, Docker and more.
Things You Should Definitely Know About Web Development Team  Customer ThinkImagine one time you came up with a great idea to create a website for your company. The first step to take in this case is to hire a web development team of ...
Django vs Flask: A Look At The Two Popular Python Web Frameworks  Analytics India MagazineIn this article, we look at two of the best frameworks, Django and Flask that can be used by Python programmers and developers.
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 ...
Best Programming Languages For Backend Web Development  TechnotificationHere are some interesting server-side web development programming languages worth considering for web development.
Careers in Web Development  Telangana TodayIn the last edition we have discussed about various technology stacks, what to learn and what is the career path. This article details about careers in web ...
New Zealand to Ban Military-Style Semiautomatic Guns, Jacinda Ardern Says  The New York TimesCHRISTCHURCH, New Zealand — Prime Minister Jacinda Ardern of New Zealand on Thursday announced a national ban on all military-style semiautomatic ...
Know about the current trends in web development  Customer ThinkIn case of web development, you may have probably heard that the only constant is the change. It is an industry-defining statement as web development keeps ...
Google Forgets to Announce a Major Change – SEO Community Disappointed  Search Engine JournalGoogle announced a major change several years late. The SEO community reacts with disappointment.
Learn Web Development for Free With App Academy  LifehackerCoding school App Academy has opened a free online interactive version of its 12-week curriculum. That's a pretty good deal, since the Academy's in-person ...
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.
You Can Become a Web Developer with This Interactive Coding Bootcamp  Interesting EngineeringWith over 60 hours of instruction led by industry professionals, this in-depth bundle will get you up to speed with the world's most important programming ...
How to become full-stack web developer  JAXenterIf you're looking for a way to become a full-stack web developer, and amplify your chances of landing a well-paid job, here is the ultimate guideline.
Web Development Business Management and Sales Techniques  Business 2 CommunitySoftware engineers often think about starting a web development business of their own. We may be talking about a traditional senior software developer working ...
This Complete Full Stack Web Development Master Class Bundle only costs $29  NeowinToday's highlighted deal comes via our Online Courses section of the Neowin Deals store, where you can save 95% off the Complete Full Stack Web ...
Use Rust for web development [Tutorial]  Packt HubRust is efficient and has well thought web-oriented frameworks, making it viable for web development. In this article, we'll see how Rust can be used for web ...
Python Survey: Data Analysis Overtakes Web Development as No. 1 Use Case  ADT MagazineA new developer survey about Python reveals the programming language is now used primarily for data analysis, supplanting the previous No. 1 use case, Web ...
Learn the Essentials of Web Development with This eBook Bundle  Interesting EngineeringThrough hands-on, real-world instruction, this course teaches you about everything from development essentials like JavaScript, Java, and C++ to interview ...
Become a professional web developer with this nine-course bundle  Android AuthorityWith nine courses and over 60 hours of training led by development pros, this bundle walks you through both the fundamentals of web development along with ...
Top Five Programming Languages To Learn In 2019  Analytics India MagazineIn this article, we list 5 programming languages that are recommended for 2019 and the importance of these languages. These langyages are in great demand.
“ChromeOS is ready for web development” – A talk by Dan Dascalescu at the Chrome Web Summit 2018  Packt HubAt the Chrome Web Summit 2018, Dan Dascalescu, partner developer advocate at Google provided a high-level overview of ChromeOS and discussed ...

Web Site Development Process - The Life-cycle Steps

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

Functions and Subroutines in ASP

Functions and Subroutines in ASP If you read... Read More

Content Management

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

Frequent Business Question: How Do You Start a Web Business?

Today it seems everyone is jumping on the entrepreneur bandwagon,... Read More

You Dont Know Which One

I still remember it very clear ... It was almost... Read More

Why Every Small Business Owner Needs Two Websites

Every small business owner knows that they need a website,... Read More

How to Listen on the Web

When building a relationship, listening is more important than talking.A... Read More

Study Your Sites Performance Via Hit Tracking

Knowledge is power.And undoubtedly, it is the key to making... Read More

Creating Websites that Cater to Exam Preparations

One of the things that Internet excels is disseminating information... Read More

Developing A Login System With PHP And MySQL

Most interactive websites nowadays would require a user to log... Read More

Your Website Should Be Selling

It may come as some surprise to a traditionally off-line... Read More

User Interface Design: Key to Achieve Best Web Development

From early days of www, the Internet sites that are... Read More

The Number 1 Reason Most Websites Fail

Failure, just like success, is measured differently by each and... Read More

Your Website Reflects Your Business

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

Marketing Your Business Online

As a business you can't afford to ignore the Internet... Read More

I Did It: Six Months to a Successful Website

For years now I've been looking to start my own... Read More

Give Your Business a Cash Infusion

Whether you have your own business already, or are looking... Read More

Top 5 Webmaster Tools You Can Pick Up For Pennies

1. SiteSpinner V2 - On Sale www.deprice.com/sitespinner.htmSiteSpinner is a user-friendly... Read More

From Concept to Website

You've decided to create a website to market your products... Read More

35% Revenue Increase? from Your Website!

2 Golden Rules for an Engaging Website35% of visitors fail... Read More

Disability Discrimination Act (DDA) & Web Accessibility

There's been widespread speculation about the new legislation being introduced... Read More

How to Get a Knock Out Website!

The first step in setting up an online business...Starting an... Read More

Let Your Customers Redesign Your Website!

When you purchase a new item from a Yahoo! Store,... Read More

6 Steps To Your Own Website

A lot of people these days are interested in getting... Read More

Direct Sales and Your Corporate Website - A Creative Marketing Plan that Works!

Creatively marketing your corporate site takes time in the set... Read More