Browse DevX
Sign up for e-mail newsletters from DevX

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



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Including VBScript in Every Page

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

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.



Thanks for your registration, follow us on our social networks to keep up-to-date