28 Sept 2011

VB.NET: Windows version (aspx)

Sometimes we have to know which OS version the user is using (from an aspx page)

Dim strOS As String

Select Case Request.Browser.MajorVersion
   Case 6
      strOS = "Windows XP"
   Case 7
      strOS = "Windows 7"
   Case Else
End Select

No comments:

Post a Comment