Go4Expert

Go4Expert (http://www.go4expert.com/)
-   ASP.NET (http://www.go4expert.com/forums/asp-net/)
-   -   find out the OS Version my computer is running with ASP.NET??? (http://www.go4expert.com/forums/os-version-computer-running-aspnet-t10274/)

benfowler 28Apr2008 23:28

find out the OS Version my computer is running with ASP.NET???
 
Hi..I am new to this community and very new to this....
How can I find out the OS Version my computer is running with ASP.NET???

Thanks for any reply.....

dotnetexpert 16May2008 16:17

Re: find out the OS Version my computer is running with ASP.NET???
 
Hi,

you need to know version of client machine or the server machine on which your website resides.

also is it hosted on Windows/Linux/Mac ?

once you provide this details, i'll surely answer your q's.

gouri 14Mar2009 16:18

Re: find out the OS Version my computer is running with ASP.NET???
 
Quote:

Originally Posted by dotnetexpert (Post 28618)
Hi,

you need to know version of client machine or the server machine on which your website resides.

also is it hosted on Windows/Linux/Mac ?

once you provide this details, i'll surely answer your q's.


I need O.S version of client machine in web application

shabbir 14Mar2009 16:45

Re: find out the OS Version my computer is running with ASP.NET???
 
Using JS can help

Like

HTML Code:

if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";


gouri 14Mar2009 17:15

Re: find out the OS Version my computer is running with ASP.NET???
 
Quote:

Originally Posted by shabbir (Post 44345)
Using JS can help

Like

HTML Code:

if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";



Thanks for quick reply
Actually I want location of hosts file for appending some IP in that
Windows Vista = C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows XP = C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows 2K = C:\WINNT\SYSTEM32\DRIVERS\ETC
Win 98/ME = C:\WINDOWS

shabbir 14Mar2009 19:00

Re: find out the OS Version my computer is running with ASP.NET???
 
That cannot be done on client machine without installing some program.

gouri 16Mar2009 08:42

Re: find out the OS Version my computer is running with ASP.NET???
 
Quote:

Originally Posted by shabbir (Post 44353)
That cannot be done on client machine without installing some program.

Thanks!!!!!!!!!!!!!!!!


All times are GMT +5.5. The time now is 04:40.