Email: Password:       Forgot Password 
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.

Get Operating System Information in ASP.NET

Viewed:  2611 
Posted On:  10/01/2014 09:55:05 
How we can get operating system information in ? 

In this article I am going to explain how we can get operating system information in application:

Below code can show all information:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls; 

namespace Get_OS_information_in_ASP.NET
    public partial class DisplayOSInformation : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
            if (!Page.IsPostBack)

        public void GetOSInformation()
            OperatingSystem os = System.Environment.OSVersion;
            Response.Write("<b>Platform :</b> " + os.Platform + "<br/><br/>");
            Response.Write("<b>Service Pack :</b> " + os.ServicePack + "<br/><br/>");
            Response.Write("<b>Version :</b> " + os.Version + "<br/><br/>");
            Response.Write("<b>VersionString :</b> " + os.VersionString + "<br/><br/>");
            Response.Write("<b>CLR Version :</b> " + System.Environment.Version);



Run the application:

Get OS Info 1.png

Image 1.

         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us