Or use Session variables, or just declare a variable in the head of your page, and reference it in the include files (for this you will have to make sure it is declared before each file including those files).
Stilgar.
Main Topics
Browse All TopicsI am trying to make my site easier to maintain, and want to use include files. The idea here is have each segment of code in an include file, and select what page it is for navigation etc. with a simple index number. I have the sitemap in a spreadsheet that exports the case function in ASP, so updating the site will be a breeze.
So how do I get the passing of that variable between these different navX.asp pages to make this concept work?
As you can see, the main page becomes very easy to maintain- Navigation, nav-crumbs across the top, page titles, links etc. are all maintained in my spreadsheet and called with 1 number. This page works fine when it is all put together in one file.. -> http://vacorp.com/common/d
I posted the question in the [H]ardforum- been a member there a long time, you can see the post there : http://www.hardforum.com/s
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Sorry for being a noob here, but is this what the global.asa file would look like? And what happens when a user has cookies disabled? Is an application variable a better solution? And finally, how do I call the variable in my include files, where typically is would be: "SELECT CASE NavIndex" or "<%response.Write(sideNavI
Business Accounts
Answer for Membership
by: dosthPosted on 2008-06-12 at 00:27:27ID: 21766874
declare all variables in global.asa file