dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Feb 11, 1997

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Including VBScript in Every Page

Question:
Is there a way to share VBScript code between different Web pages?

Answer:
The best way to do this is to use a feature that may or may not be supported on your server called server-side includes. These are similar to the #include directive used in C. They instruct the server to read in a particular file before displaying it to the user. At inquiry.com, we use server-side includes extensively to provide the toolbar that is displayed on the side of each page. If we want to change the look of the toolbar, we change one file and every page is instantly updated. Check with your system administrator to find out if server-side includes are available. You're with Microsoft, so I would assume you are using their web server. It does support server-side includes; however, I don't know the syntax. That would be the best way to include your VBScript code in every page.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date