Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Quick 'Q' about ASP...
Old 05-07-2004, 02:11 PM Quick 'Q' about ASP...
Average Talker

Posts: 15
Location: Arkansas
Trades: 0
I'll be honest up front - I am no programmer. In fact I just learned HTML as of February. However I've taken to it rather well, and I've design a troubleshooting website for the corperate helpdesk I work on. Content is going to constantly change so I was going to use the 1 command I know in PHP to help keep maintenance low.

Simply input

<?
include menu.php
>

This would let me have a file called ' menu.php ' that I could just use the command line above on all the pages I make, but only have to maintain 'menu.php' to implement the menu change site wide. ( Take no offence - I know you guys fully understand what I mean - I'm only dumbing it down so you know exactly what function I'm needing )

For some reason the server admin will not let me use PHP extentions even though PHP 5 is loaded on the server.

So at long last, my question is : Can I use the .asp extention and use a similar command that does the same thing without having to mess with a database. I guess I could learn how to use a database if necessary.

Many Thanks.
__________________
"I'll be nicer when people get smarter"
Xx MOTU xX is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-07-2004, 02:16 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
Yup. Sure can.


Code:
<!--#include file="filename.asp"-->
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
techwench is offline
Reply With Quote
View Public Profile
 
Old 05-07-2004, 02:27 PM
Average Talker

Posts: 15
Location: Arkansas
Trades: 0
Simply put - I love you

That is going to save me so much time. Many Thanks!
__________________
"I'll be nicer when people get smarter"
Xx MOTU xX is offline
Reply With Quote
View Public Profile
 
Old 05-07-2004, 03:27 PM
Average Talker

Posts: 15
Location: Arkansas
Trades: 0
Hmmm..would it cause difficulties if there are no server side scripts run ?? Got an error first time testing. The web admin here said that there are no server side scripts run that it would need to be 'client' side.

Or perhaps I did it wrong.

Named a file called ' test.asp ' that look like :

<HTML>
<HEAD>
</HEAD>
<BODY>
<!--#include file="Upper.asp"-->
<!--#include file="Lower.asp"-->
</BODY>
</HTML>

Is there anything wrong with this set up ?
__________________
"I'll be nicer when people get smarter"
Xx MOTU xX is offline
Reply With Quote
View Public Profile
 
Old 05-07-2004, 09:57 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
You did it right.
Without server side includes (SSI) or php, your only other option is javascript, it's a little bit more of a pain though.
See here:
http://javascript.about.com/library/.../aa102901a.htm
Anacrusis is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Quick 'Q' about ASP...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16840 seconds with 12 queries