Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 06-10-2005, 11:00 AM   #1 (permalink)
joehouse
Registered User
 
joehouse's Avatar
 
Join Date: Jun 2005
Posts: 9
joehouse is on a distinguished road
Referrencing HTML document mid page with ASP variable

Hi gang, my first post, and I'm just coming back to webdesign after being away for five-six years [been doing construction... needed to get outside for a bit]. But I remembered some time ago that a friend told me of this miraculous thing called ASP that would do away with frames... FOREVER.

But here's my question. I want to have a navigation bar along the left side of most of my pages. With usig frames I would simple have dived the page in half veritically and would have had the left side referrencing navigation.html and the right side of the page would jump between whatever.html and whatever.html .
Is there a way to insert this same navigation bar in each page by using a variable? ie
< % Dim Navigation as string
navigation = "nav.html" % >
And then whenever I'd have to update my navigation I could do the changes in nav.html ? As opposed to every single page running a search/replace?

Thanks for the help!

Joe
joehouse is offline   Reply With Quote
Old 06-10-2005, 11:44 AM   #2 (permalink)
jeffro
Person of interest
 
jeffro's Avatar
 
Join Date: Mar 2003
Location: New Jersey
Posts: 102
jeffro is on a distinguished road
Just include the page with an ASP file include like this:
Code:
<!--#include file="nav.html"-->
__________________
Jeffro
Linux counter#:213782
GnuPG ID: 406238E7
jeffro is offline   Reply With Quote
Old 06-10-2005, 03:30 PM   #3 (permalink)
joehouse
Registered User
 
joehouse's Avatar
 
Join Date: Jun 2005
Posts: 9
joehouse is on a distinguished road
Quote:
Originally Posted by jeffro
Just include the page with an ASP file include like this:
Code:
<!--#include file="nav.html"-->
Sweet! Thanks a million! And after doing a search on the command I've found that I need to do a TON more reading on SSI's
joehouse is offline   Reply With Quote
Old 06-11-2005, 02:16 PM   #4 (permalink)
jeffro
Person of interest
 
jeffro's Avatar
 
Join Date: Mar 2003
Location: New Jersey
Posts: 102
jeffro is on a distinguished road
Heh, glad it helped. Feel free to post your questions here if you have any.
__________________
Jeffro
Linux counter#:213782
GnuPG ID: 406238E7
jeffro is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Password Protect ASP Page awieds MS Technologies ( ASP, VB, C#, .NET ) 1 04-19-2005 01:28 PM
reset Variable in HTML awieds MS Technologies ( ASP, VB, C#, .NET ) 2 04-12-2005 12:32 AM


All times are GMT -8. The time now is 07:44 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting