Help - Search - Members - Calendar
Full Version: .asp Pages
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
YourSuperior
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.
pandora
Why do you prefer asp pages over something like.. lets say, php?
YourSuperior
Because I attended this Computer Network Technology conference that I was selected to go to and they said that .asp pages were better than .html or .php pages. So I said hmm maybe I should convert my website's pages to .asp.
pandora
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
  • /dir
    • index.asp - this is the file you are working in.
    • /subdir
      • file.asp - this is the file you are including.



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.
mipadi
I worked as an ASP developer for over four years. I can tell you, without a doubt, that for a personal blog, ASP offers no advantages whatsoever over PHP.

That said, to make an ASP-based website, you a Windows webserver running Microsoft IIS. Then, you should write your webpages in a language supported by your version of ASP.

That's about it... A full tutorial on an ASP language like VBScript is beyond the scope of this post.

Really, though, ASP offers no real advantages over PHP; and if you want something "better" than PHP, go with Python or Ruby.
YourSuperior
I just want to say thanks to both of you. You both helped me out and made me change my mind about asp. So I guess I'll stick to php. _smile.gif
Relentless
Glad you got your answer, Alvin.

TOPIC CLOSED.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.