Print Page | Close Window

file name to title

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=8757
Printed Date: 01 April 2026 at 1:12am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: file name to title
Posted By: hurricane
Subject: file name to title
Date Posted: 11 January 2004 at 7:10am

What i want to do is to get the filename and then depending on what file it is show the relevent title without having to enter the different title on each page... for example if you goto the file called "videos.asp" i want it to get and show "Videos" from a file containin all the titles...

Could anyone help me out?



-------------
Ash



Replies:
Posted By: weppos
Date Posted: 11 January 2004 at 12:59pm
You have to use the Server Variables.
With them you can get the file name and with a simple general function u can insert a dynamic title depeding on page name.


Posted By: hurricane
Date Posted: 11 January 2004 at 2:58pm
ive got this all working now thanks

-------------
Ash



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net