vijay

welcome Netizen

Share Your Knowledge.It is a way to achieve immortality

Tuesday, May 31, 2011

How to get the Browser Version and Operating system version in Asp.Net


Hi..
Here i have wrriten the code for to find Browser name,version and also find operating system used in browsing system
There many methods used to find the value..Here list of codes used to find the task.......

        Response.Write(Request.Browser.Browser & "<br>") 'its return Browser name
        Response.Write(Request.Browser.Version & "<br>")   'its return Browser version
        Response.Write(Request.Browser.Platform & "<br>") its return os name

 Also you can use this code to find the os version.....

        Response.Write("The OS Version is " & System.Environment.OSVersion.ToString())


        Response.Write(Request.UserHostAddress & "<br>")

i hope it helpful .....

0 comments:

Post a Comment