appMinorVersion
Good afternoon ASp forum,
Our company has built a VPN for 2200 hospitals in 50 states.
One of the features of our about to be released catalog works
depending on which Service Pack is installed on the client.
We would like to detect the OS, browser, browser version and
service pack number so we can notify our clients who need upgrades.
We can detect the service pack number on the client using the
Javascript object Navigator.appMinorVersion but cannot pass this data
from Javascript into ASP where the data would be captured to a database.
In the code for the page below marked ASPJavascriptH.asp the Javascript works but the ASP does not. Our conclusion is server side and client side objects cannot be mixed.
We can get the OS, browser, and browser version using ASP
<%= Request.ServerVariables("HTTP_USER-AGENT") %>
but can find no way of getting the service pack number. Is there an object in the Microsoft world that parallels the Javascript object Navigator.appMinorVersion?
++++++++++++++
ASPJavascriptH.asp
<html>
<head>
<title>Browser Information Detection Script</title>
<SCRIPT LANGUAGE= Javascript>
var Browser_Name = navigator.appMinorVersion;
</SCRIPT>
<script language="javascript" runat="server">
function BrowserValue()
{
var Browser_Name2 = navigator.appMinorVersion;
Response.Write(Browser_Name2)
}
</script>
</head>
<body>
<SCRIPT language=JavaScript>
document.write("Your Browser is: <b>"+ Browser_Name +"</b><br>");
</SCRIPT>
<p>Result: <%BrowserValue()%></p>
</body>
</html>
|