bcalagoure — 2011-06-03T12:39:44-04:00 — #1
I also posted this in the Classic ASP forum.
I am a total newb when it comes to either, so can I run a test page to see if the server is running one or either?
Also, in PHP I usually use an include statement to include files that contain common elements like menus or footers. Is there a similar statement in ASP?
renkai — 2011-06-03T17:38:13-04:00 — #2
To test asp, create a page called test.asp and see if it works (doesn't error).
To test .net, create a page called test.aspx and see if it works (doesn't error).
An asp include should work like this:
praetor — 2011-06-04T02:45:42-04:00 — #3
Your host should have this information available, you don't have to guess it. Bte, forget about ASP, is dead, go only with asp.net
nightstalker — 2011-06-04T03:44:15-04:00 — #4
That way of doing includes is very old. A lot better way of doing it is to create a UserControl and insert that on you page. It is a .ascx file. Then you also have something called a Master Page. Which usually contains your sites header, menus and footer. With a content section or more depending on your needs. Then each aspx page points to the master and you put your code into those content blocks declared on the master page.
renkai — 2011-06-04T14:10:53-04:00 — #5
Just to clarify, you're describing how .net works. The question regarding includes was about asp.
logic_earth — 2011-06-04T14:41:46-04:00 — #6
If creating a new site or whatever do not bother with classic ASP forget it even exists. IT IS A DEAD LANGUAGE.
wwb_99 — 2011-06-05T10:41:54-04:00 — #7
If the site has an asp extension, it is probably ASP. If it has a /bin folder with some .dll files, it is probably .NET. Server generally is capable of running both.
I second what logic_earth said.
bcalagoure — 2011-06-06T07:23:47-04:00 — #8
Thanks for all the replies. I did the test Renkai suggested and got errors, so that answers my question
webcosmo — 2011-06-06T09:52:29-04:00 — #9
One of the easiest way of checking it is knowing what .net version installed.
open that on IE. It should tell you the .net version installed if any.
Alternatively you can simply create a test script with .net code on it see if that runs.
wwb_99 — 2011-06-06T12:35:50-04:00 — #10
That is all fine and good -- if you want to know what version of .NET the computer with that instance of IE is running. It won't tell you in any way what the server is running.