| ||||
|
Home Single Intro Includes Server Execute inc_clientNav Demo
|
Using query strings to separate navigation from content I originally developed this technique to create a site that would have all the benefits of a framed page without all it's drawbacks. It turned out to be a great way to build and maintain a web site. Since all the navigation is on one page, one only has to scroll up or down to see what's going on. No more bouncing from file to file to file to see what's happening.We all know that we can use .css files to separate formatting from content. But how do we easily separate navigation from content? The technique illustrated in this article uses query strings to control the pages to be displayed. If your server supports it, the server.execute version should be used. The entire site is on the index.asp page. index.asp acts like a traffic light, directing what will be displayed and where.
Then depending on the query string values, the appropriate page will be displayed in the proper cell to the table layout.
Using include files:
Using server.execute:
The query strings used in this example come from the menu pages - inc_mainNav.asp, inc_clientNav, inc_salesNav, which are in the usual left cell of the page layout table. But the query strings can come from anywhere. At look at the index.asp (includes version) or index.asp (server.execute version) and inc_clientNav code may clarify things a bit. Try the Demo Tips:
Please continue to the related article, Rapid Application Development, where we'll be calling subs instead of include files. Very useful when developing a database intensive application. Special Thanks to: Note: It has been pointed out that the technique/method I've written about in this article is remarkably similar to Fusebox and seems to be used at the IBuySpy Portal site. Let it be known that the technique explored in this article I developed independently. Other articles:
| |||