Which ASP version the server is running?

  • Thread starter Thread starter joe
  • Start date Start date
J

joe

Is there a code snippet (in an .asp page) that would tell which version of ASP
the server is running.

I got the info from the web hotel that their Windows server has ASP/.NET
capability. After some test it appears that "classic" is only supported. I'm a
bit confused what kind of code I should write in order to get better
compatibility across different platforms and ASP version.
 
Hello Joe,

Call Response.Write(System.Environment.Version.ToString() ); from your code

J> Is there a code snippet (in an .asp page) that would tell which
J> version of ASP the server is running.
J>
J> I got the info from the web hotel that their Windows server has
J> ASP/.NET capability. After some test it appears that "classic" is
J> only supported. I'm a bit confused what kind of code I should write
J> in order to get better compatibility across different platforms and
J> ASP version.
J>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Michael Nemtsev said:
Hello Joe,

Call Response.Write(System.Environment.Version.ToString() ); from your code

J> Is there a code snippet (in an .asp page) that would tell which
J> version of ASP the server is running.
J>
J> I got the info from the web hotel that their Windows server has
J> ASP/.NET capability. After some test it appears that "classic" is
J> only supported. I'm a bit confused what kind of code I should write
J> in order to get better compatibility across different platforms and
J> ASP version.
J>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche


Thanks!

I do get an error:
"Microsoft JScript runtime error '800a1391'
'System' is undefined
/test/Helloworld.asp, Line 5"

From:
<%@ Language="javascript" %>
<html><body><form>
<h3>Hello world!!! This is an ASP page.</h3>
<% Response.Write("as part of an execution block");%>
<%Response.Write(System.Environment.Version.ToString())%>;
</form>
</body></html>
 
Back
Top