.asp Pages |
.asp Pages |
Apr 20 2008, 12:48 AM
Post
#1
|
|
![]() ;) ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,573 Joined: Feb 2005 Member No: 99,124 |
I am wanting to use .asp pages for my personal blog instead of .html pages, and I was wondering how I could go about doing that.
|
|
|
|
![]() |
Apr 20 2008, 04:26 AM
Post
#2
|
|
![]() i did your boyfriend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 3,335 Joined: Feb 2004 Member No: 4,071 |
It's only really useful if you have something you actually want to do with ASP. If you're just hosting a regular site with a few pages, there's no real use... you might as well stick with a few php includes.
In any case, asp includes work pretty much the same as php, you use the tag to include the file you like, wherever you want its content to show up. But there are two ways of including. Virtually/Absolutely or Relatively. Let's say you are working inside a file that is located in a folder called "dir" and you want to include a file that is located in a subdirectory of "dir" called "subdir." So, to put it more visually: QUOTE Root
Absolutely: This assumes that the file is being called starting from your server's root directory. It doesn't matter where you are currently on the server, it will automatically assume that you are starting from your root. QUOTE <!--#include virtual="dir/subdir/file.asp" --> Relatively: This indicates that you are calling the file relative to your current position on your server. QUOTE <!--#include file="/subdir/file.asp" --> another example is if the file was in the same folder ("dir") then it would simply be: QUOTE <!--#include file="file.asp" --> Hope this helps. |
|
|
|
Alvin .asp Pages Apr 20 2008, 12:48 AM
pandora Why do you prefer asp pages over something like.. ... Apr 20 2008, 01:26 AM
Alvin Because I attended this Computer Network Technolog... Apr 20 2008, 01:45 AM
mipadi I worked as an ASP developer for over four years. ... Apr 20 2008, 06:28 AM
Alvin I just want to say thanks to both of you. You both... Apr 20 2008, 03:16 PM
Relentless Glad you got your answer, Alvin.
TOPIC CLOSED. Apr 21 2008, 01:16 AM![]() ![]() |